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

Side by Side Diff: webkit/plugins/ppapi/host_globals.h

Issue 10910099: PPAPI: Make CompletionCallbacks work right on background threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_message_loop_api.h ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/callback_tracker.h" 9 #include "ppapi/shared_impl/callback_tracker.h"
10 #include "ppapi/shared_impl/ppapi_globals.h" 10 #include "ppapi/shared_impl/ppapi_globals.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; 47 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE;
48 virtual base::Lock* GetProxyLock() OVERRIDE; 48 virtual base::Lock* GetProxyLock() OVERRIDE;
49 virtual void LogWithSource(PP_Instance instance, 49 virtual void LogWithSource(PP_Instance instance,
50 PP_LogLevel_Dev level, 50 PP_LogLevel_Dev level,
51 const std::string& source, 51 const std::string& source,
52 const std::string& value) OVERRIDE; 52 const std::string& value) OVERRIDE;
53 virtual void BroadcastLogWithSource(PP_Module module, 53 virtual void BroadcastLogWithSource(PP_Module module,
54 PP_LogLevel_Dev level, 54 PP_LogLevel_Dev level,
55 const std::string& source, 55 const std::string& source,
56 const std::string& value) OVERRIDE; 56 const std::string& value) OVERRIDE;
57 virtual ::ppapi::MessageLoopShared* GetCurrentMessageLoop() OVERRIDE;
57 58
58 HostVarTracker* host_var_tracker() { 59 HostVarTracker* host_var_tracker() {
59 return &host_var_tracker_; 60 return &host_var_tracker_;
60 } 61 }
61 62
62 // PP_Modules ---------------------------------------------------------------- 63 // PP_Modules ----------------------------------------------------------------
63 64
64 // Adds a new plugin module to the list of tracked module, and returns a new 65 // Adds a new plugin module to the list of tracked module, and returns a new
65 // module handle to identify it. 66 // module handle to identify it.
66 PP_Module AddModule(PluginModule* module); 67 PP_Module AddModule(PluginModule* module);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 typedef std::map<PP_Module, PluginModule*> ModuleMap; 109 typedef std::map<PP_Module, PluginModule*> ModuleMap;
109 ModuleMap module_map_; 110 ModuleMap module_map_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(HostGlobals); 112 DISALLOW_COPY_AND_ASSIGN(HostGlobals);
112 }; 113 };
113 114
114 } // namespace ppapi 115 } // namespace ppapi
115 } // namespace webkit 116 } // namespace webkit
116 117
117 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 118 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_message_loop_api.h ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698