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

Unified Diff: ppapi/proxy/plugin_globals.h

Issue 46433002: Support using TrackedCallbacks as hints to determine the handling thread of resource reply messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years 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
Index: ppapi/proxy/plugin_globals.h
diff --git a/ppapi/proxy/plugin_globals.h b/ppapi/proxy/plugin_globals.h
index bc55245d611a10c5dc154529a1749b595ef86134..029e2d2e28eebae94a1d69040ea59a19d04221f7 100644
--- a/ppapi/proxy/plugin_globals.h
+++ b/ppapi/proxy/plugin_globals.h
@@ -34,6 +34,7 @@ namespace proxy {
class MessageLoopResource;
class PluginProxyDelegate;
+class ResourceReplyThreadRegistrar;
class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals {
public:
@@ -128,6 +129,10 @@ class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals {
// The embedder should call this function when the command line is known.
void set_command_line(const std::string& c) { command_line_ = c; }
+ ResourceReplyThreadRegistrar* resource_reply_thread_registrar() {
+ return resource_reply_thread_registrar_.get();
+ }
+
private:
class BrowserSender;
@@ -160,6 +165,8 @@ class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals {
// lazily, since it might not be needed.
scoped_ptr<base::Thread> file_thread_;
+ scoped_refptr<ResourceReplyThreadRegistrar> resource_reply_thread_registrar_;
dmichael (off chromium) 2013/12/10 23:38:01 Is there any reason to not just hold it by value?
yzshen1 2013/12/11 00:21:49 Mostly because the resources and the message filte
dmichael (off chromium) 2013/12/11 21:30:36 Hmm, yeah... it's a little unclear to me what the
yzshen1 2013/12/11 22:22:07 Yeah, in ChildProcess, the main_thread_ member (in
+
DISALLOW_COPY_AND_ASSIGN(PluginGlobals);
};

Powered by Google App Engine
This is Rietveld 408576698