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

Side by Side Diff: ppapi/proxy/plugin_globals.cc

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_globals.h ('k') | ppapi/proxy/plugin_resource_tracker.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 #include "ppapi/proxy/plugin_globals.h" 5 #include "ppapi/proxy/plugin_globals.h"
6 6
7 #include "ppapi/proxy/plugin_dispatcher.h" 7 #include "ppapi/proxy/plugin_dispatcher.h"
8 8
9 namespace ppapi { 9 namespace ppapi {
10 namespace proxy { 10 namespace proxy {
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 ResourceTracker* PluginGlobals::GetResourceTracker() { 24 ResourceTracker* PluginGlobals::GetResourceTracker() {
25 return &plugin_resource_tracker_; 25 return &plugin_resource_tracker_;
26 } 26 }
27 27
28 VarTracker* PluginGlobals::GetVarTracker() { 28 VarTracker* PluginGlobals::GetVarTracker() {
29 return &plugin_var_tracker_; 29 return &plugin_var_tracker_;
30 } 30 }
31 31
32 FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst, 32 FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst, ApiID id) {
33 proxy::InterfaceID id) {
34 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst); 33 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst);
35 if (dispatcher) 34 if (dispatcher)
36 return dispatcher->GetFunctionAPI(id); 35 return dispatcher->GetFunctionAPI(id);
37 return NULL; 36 return NULL;
38 } 37 }
39 38
40 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) { 39 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) {
41 // Currently proxied plugins don't use the PP_Module for anything useful. 40 // Currently proxied plugins don't use the PP_Module for anything useful.
42 return 0; 41 return 0;
43 } 42 }
44 43
45 } // namespace proxy 44 } // namespace proxy
46 } // namespace ppapi 45 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/plugin_resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698