diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 02:38:24 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 02:38:24 +0000 |
commit | 7ef6b79bd40c9e7ce84b05a7b8cc3ed28a0ddc72 (patch) | |
tree | 035507f07c0928c6ca8043fa7d01f64817bed3eb /ppapi/proxy/plugin_globals.h | |
parent | fd8609d8bd5255ab0a46b7169921a98de7837025 (diff) | |
download | chromium_src-7ef6b79bd40c9e7ce84b05a7b8cc3ed28a0ddc72.zip chromium_src-7ef6b79bd40c9e7ce84b05a7b8cc3ed28a0ddc72.tar.gz chromium_src-7ef6b79bd40c9e7ce84b05a7b8cc3ed28a0ddc72.tar.bz2 |
Pepper: Introduce ThreadAwareCallback.
Some PPB interfaces have methods that set a custom callback. Usually, the callback has to be called on the same thread as the one it was set on. ThreadAwareCallback keeps track of the target thread, and posts a task to run on it if requested from a different thread.
BUG=None
TEST=newly added unittests.
Review URL: https://chromiumcodereview.appspot.com/11859015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/plugin_globals.h')
-rw-r--r-- | ppapi/proxy/plugin_globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/proxy/plugin_globals.h b/ppapi/proxy/plugin_globals.h index b323903..9b50295 100644 --- a/ppapi/proxy/plugin_globals.h +++ b/ppapi/proxy/plugin_globals.h @@ -30,7 +30,7 @@ class PluginProxyDelegate; class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals { public: PluginGlobals(); - PluginGlobals(PpapiGlobals::ForTest); + explicit PluginGlobals(PpapiGlobals::PerThreadForTest); virtual ~PluginGlobals(); // Getter for the global singleton. Generally, you should use |