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

Unified Diff: content/common/child_process.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/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/private/ppb_proxy_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process.h
===================================================================
--- content/common/child_process.h (revision 77663)
+++ content/common/child_process.h (working copy)
@@ -18,11 +18,15 @@
class ChildProcess {
public:
// Child processes should have an object that derives from this class.
+ // Normally you would immediately call set_main_thread after construction.
ChildProcess();
virtual ~ChildProcess();
- // Getter for the child process' main thread.
+ // May be NULL if the main thread hasn't been set explicitly.
ChildThread* main_thread();
+
+ // Sets the object associated with the main thread of this process.
+ // Takes ownership of the pointer.
void set_main_thread(ChildThread* thread);
MessageLoop* io_message_loop() { return io_thread_.message_loop(); }
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/private/ppb_proxy_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698