Page Speed Optimization Libraries
1.2.24.1
|
#include "resource.h"
Public Member Functions | |
AsyncCallback (const ResourcePtr &resource) | |
virtual void | Done (bool lock_ok, bool resource_ok)=0 |
const ResourcePtr & | resource () |
virtual bool | EnableThreaded () const |
We define a new Callback type here because we need to pass in the Resource to the Done callback so it can collect the fetched data.
virtual bool net_instaweb::Resource::AsyncCallback::EnableThreaded | ( | ) | const [inline, virtual] |
Override this to return true if this callback is safe to invoke from thread other than the main html parse/http request serving thread.