Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2471)

Unified Diff: chrome/ppapi_plugin/ppapi_thread.h

Issue 6628019: Ensure that PP_Instance values are unique within a plugin process in addition... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/pepper_plugin_registry.cc ('k') | chrome/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ppapi_plugin/ppapi_thread.h
===================================================================
--- chrome/ppapi_plugin/ppapi_thread.h (revision 77663)
+++ chrome/ppapi_plugin/ppapi_thread.h (working copy)
@@ -27,7 +27,8 @@
}
}
-class PpapiThread : public ChildThread {
+class PpapiThread : public ChildThread,
+ public pp::proxy::Dispatcher::Delegate {
public:
PpapiThread();
~PpapiThread();
@@ -36,6 +37,11 @@
// ChildThread overrides.
virtual bool OnMessageReceived(const IPC::Message& msg);
+ // Dispatcher::Delegate implementation.
+ virtual MessageLoop* GetIPCMessageLoop();
+ virtual base::WaitableEvent* GetShutdownEvent();
+ virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet();
+
// Message handlers.
void OnMsgLoadPlugin(const FilePath& path);
void OnMsgCreateChannel(base::ProcessHandle host_process_handle,
@@ -59,6 +65,9 @@
// and pass it around as necessary.
PP_Module local_pp_module_;
+ // See Dispatcher::Delegate::GetGloballySeenInstanceIDSet.
+ std::set<PP_Instance> globally_seen_instance_ids_;
+
DISALLOW_COPY_AND_ASSIGN(PpapiThread);
};
« no previous file with comments | « chrome/common/pepper_plugin_registry.cc ('k') | chrome/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698