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

Side by Side Diff: ppapi/proxy/plugin_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 | « ppapi/proxy/plugin_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_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 PPAPI_PROXY_PLUGIN_GLOBALS_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_GLOBALS_H_
6 #define PPAPI_PROXY_PLUGIN_GLOBALS_H_ 6 #define PPAPI_PROXY_PLUGIN_GLOBALS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/proxy/plugin_resource_tracker.h" 9 #include "ppapi/proxy/plugin_resource_tracker.h"
10 #include "ppapi/proxy/plugin_var_tracker.h" 10 #include "ppapi/proxy/plugin_var_tracker.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Getter for the global singleton. Generally, you should use 22 // Getter for the global singleton. Generally, you should use
23 // PpapiGlobals::Get() when possible. Use this only when you need some 23 // PpapiGlobals::Get() when possible. Use this only when you need some
24 // plugin-specific functionality. 24 // plugin-specific functionality.
25 inline static PluginGlobals* Get() { return plugin_globals_; } 25 inline static PluginGlobals* Get() { return plugin_globals_; }
26 26
27 // PpapiGlobals implementation. 27 // PpapiGlobals implementation.
28 virtual ResourceTracker* GetResourceTracker() OVERRIDE; 28 virtual ResourceTracker* GetResourceTracker() OVERRIDE;
29 virtual VarTracker* GetVarTracker() OVERRIDE; 29 virtual VarTracker* GetVarTracker() OVERRIDE;
30 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, 30 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst,
31 proxy::InterfaceID id) OVERRIDE; 31 ApiID id) OVERRIDE;
32 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; 32 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
33 33
34 // Getters for the plugin-specific versions. 34 // Getters for the plugin-specific versions.
35 PluginResourceTracker* plugin_resource_tracker() { 35 PluginResourceTracker* plugin_resource_tracker() {
36 return &plugin_resource_tracker_; 36 return &plugin_resource_tracker_;
37 } 37 }
38 PluginVarTracker* plugin_var_tracker() { 38 PluginVarTracker* plugin_var_tracker() {
39 return &plugin_var_tracker_; 39 return &plugin_var_tracker_;
40 } 40 }
41 41
42 private: 42 private:
43 static PluginGlobals* plugin_globals_; 43 static PluginGlobals* plugin_globals_;
44 44
45 PluginResourceTracker plugin_resource_tracker_; 45 PluginResourceTracker plugin_resource_tracker_;
46 PluginVarTracker plugin_var_tracker_; 46 PluginVarTracker plugin_var_tracker_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); 48 DISALLOW_COPY_AND_ASSIGN(PluginGlobals);
49 }; 49 };
50 50
51 } // namespace proxy 51 } // namespace proxy
52 } // namespace ppapi 52 } // namespace ppapi
53 53
54 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ 54 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698