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

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

Issue 8333004: Rename InterfaceID to ApiID and move the file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/DEPS ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ppapi_globals.h" 9 #include "ppapi/shared_impl/ppapi_globals.h"
10 #include "ppapi/shared_impl/var_tracker.h" 10 #include "ppapi/shared_impl/var_tracker.h"
(...skipping 14 matching lines...) Expand all
25 // Getter for the global singleton. Generally, you should use 25 // Getter for the global singleton. Generally, you should use
26 // PpapiGlobals::Get() when possible. Use this only when you need some 26 // PpapiGlobals::Get() when possible. Use this only when you need some
27 // host-specific functionality. 27 // host-specific functionality.
28 inline static HostGlobals* Get() { return host_globals_; } 28 inline static HostGlobals* Get() { return host_globals_; }
29 29
30 // PpapiGlobals implementation. 30 // PpapiGlobals implementation.
31 virtual ::ppapi::ResourceTracker* GetResourceTracker() OVERRIDE; 31 virtual ::ppapi::ResourceTracker* GetResourceTracker() OVERRIDE;
32 virtual ::ppapi::VarTracker* GetVarTracker() OVERRIDE; 32 virtual ::ppapi::VarTracker* GetVarTracker() OVERRIDE;
33 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI( 33 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI(
34 PP_Instance inst, 34 PP_Instance inst,
35 ::ppapi::proxy::InterfaceID id) OVERRIDE; 35 ::ppapi::ApiID id) OVERRIDE;
36 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; 36 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
37 37
38 HostResourceTracker* host_resource_tracker() { 38 HostResourceTracker* host_resource_tracker() {
39 return &host_resource_tracker_; 39 return &host_resource_tracker_;
40 } 40 }
41 HostVarTracker* host_var_tracker() { 41 HostVarTracker* host_var_tracker() {
42 return &host_var_tracker_; 42 return &host_var_tracker_;
43 } 43 }
44 44
45 // PP_Modules ---------------------------------------------------------------- 45 // PP_Modules ----------------------------------------------------------------
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 typedef std::map<PP_Module, PluginModule*> ModuleMap; 91 typedef std::map<PP_Module, PluginModule*> ModuleMap;
92 ModuleMap module_map_; 92 ModuleMap module_map_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(HostGlobals); 94 DISALLOW_COPY_AND_ASSIGN(HostGlobals);
95 }; 95 };
96 96
97 } // namespace ppapi 97 } // namespace ppapi
98 } // namespace webkit 98 } // namespace webkit
99 99
100 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ 100 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/DEPS ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698