summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_globals.h
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 12:25:33 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-12 12:25:33 +0000
commit511c58e956bf665d7cbd941535cfa5a634ab4e0f (patch)
treeab0658c40efa18541d229e2fada440fb81a54ef0 /ppapi/proxy/plugin_globals.h
parent512040e5b57383c25605735ce31abf55efe007ee (diff)
downloadchromium_src-511c58e956bf665d7cbd941535cfa5a634ab4e0f.zip
chromium_src-511c58e956bf665d7cbd941535cfa5a634ab4e0f.tar.gz
chromium_src-511c58e956bf665d7cbd941535cfa5a634ab4e0f.tar.bz2
Support using TrackedCallbacks as hints to determine the handling thread of resource reply messages.
BUG=269737 TEST=None Review URL: https://codereview.chromium.org/46433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/plugin_globals.h')
-rw-r--r--ppapi/proxy/plugin_globals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/proxy/plugin_globals.h b/ppapi/proxy/plugin_globals.h
index bc55245..029e2d2 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_;
+
DISALLOW_COPY_AND_ASSIGN(PluginGlobals);
};