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

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

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/ppb_audio_proxy.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 #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 #include "ppapi/proxy/plugin_proxy_delegate.h" 8 #include "ppapi/proxy/plugin_proxy_delegate.h"
9 #include "ppapi/thunk/enter.h" 9 #include "ppapi/thunk/enter.h"
10 10
(...skipping 30 matching lines...) Expand all
41 return &plugin_var_tracker_; 41 return &plugin_var_tracker_;
42 } 42 }
43 43
44 CallbackTracker* PluginGlobals::GetCallbackTrackerForInstance( 44 CallbackTracker* PluginGlobals::GetCallbackTrackerForInstance(
45 PP_Instance instance) { 45 PP_Instance instance) {
46 // In the plugin process, the callback tracker is always the same, regardless 46 // In the plugin process, the callback tracker is always the same, regardless
47 // of the instance. 47 // of the instance.
48 return callback_tracker_.get(); 48 return callback_tracker_.get();
49 } 49 }
50 50
51 FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst, ApiID id) { 51 thunk::PPB_Instance_API* PluginGlobals::GetInstanceAPI(PP_Instance instance) {
52 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst); 52 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
53 if (dispatcher) 53 if (dispatcher)
54 return dispatcher->GetFunctionAPI(id); 54 return dispatcher->GetInstanceAPI();
55 return NULL; 55 return NULL;
56 } 56 }
57 57
58 thunk::ResourceCreationAPI* PluginGlobals::GetResourceCreationAPI(
59 PP_Instance instance) {
60 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
61 if (dispatcher)
62 return dispatcher->GetResourceCreationAPI();
63 return NULL;
64 }
65
58 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) { 66 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) {
59 // Currently proxied plugins don't use the PP_Module for anything useful. 67 // Currently proxied plugins don't use the PP_Module for anything useful.
60 return 0; 68 return 0;
61 } 69 }
62 70
63 std::string PluginGlobals::GetCmdLine() { 71 std::string PluginGlobals::GetCmdLine() {
64 return command_line_; 72 return command_line_;
65 } 73 }
66 74
67 void PluginGlobals::PreCacheFontForFlash(const void* logfontw) { 75 void PluginGlobals::PreCacheFontForFlash(const void* logfontw) {
(...skipping 25 matching lines...) Expand all
93 // for the "instance = 0" case. 101 // for the "instance = 0" case.
94 LogWithSource(0, level, source, value); 102 LogWithSource(0, level, source, value);
95 } 103 }
96 104
97 bool PluginGlobals::IsPluginGlobals() const { 105 bool PluginGlobals::IsPluginGlobals() const {
98 return true; 106 return true;
99 } 107 }
100 108
101 } // namespace proxy 109 } // namespace proxy
102 } // namespace ppapi 110 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698