Chromium Code Reviews| Index: ppapi/proxy/dispatcher.h |
| =================================================================== |
| --- ppapi/proxy/dispatcher.h (revision 84549) |
| +++ ppapi/proxy/dispatcher.h (working copy) |
| @@ -9,6 +9,8 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/callback.h" |
| +#include "base/tracked_objects.h" |
| #include "ipc/ipc_channel_proxy.h" |
| #include "ppapi/c/pp_instance.h" |
| #include "ppapi/c/pp_module.h" |
| @@ -50,6 +52,13 @@ |
| // |
| // DEREFERENCE ONLY ON THE I/O THREAD. |
| virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() = 0; |
| + |
| + // Posts the given task to the WebKit thread associated with this plugin |
| + // process. For host processes, this will not be called and can do |
| + // nothing. The WebKit thread should be lazily created if it does not |
| + // exist yet. |
| + virtual void PostToWebKitThread(const tracked_objects::Location& from_here, |
| + const base::Closure& task) = 0; |
| }; |
| virtual ~Dispatcher(); |
| @@ -104,6 +113,8 @@ |
| Dispatcher(base::ProcessHandle remote_process_handle, |
| GetInterfaceFunc local_get_interface); |
| + void InitDispatcher(Delegate* delegate); |
|
piman
2011/05/09 20:13:44
InitDispatcher->SetDelegate ?
|
| + |
| // Setter for the derived classes to set the appropriate var serialization. |
| // Takes ownership of the given pointer, which must be on the heap. |
| void SetSerializationRules(VarSerializationRules* var_serialization_rules); |
| @@ -112,6 +123,8 @@ |
| return disallow_trusted_interfaces_; |
| } |
| + Delegate* dispatcher_delegate_; |
| + |
| private: |
| bool disallow_trusted_interfaces_; |