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

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

Issue 10091003: Convert flash to thunk (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/ppapi_messages.h » ('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/thunk/enter.h" 9 #include "ppapi/thunk/enter.h"
9 10
10 namespace ppapi { 11 namespace ppapi {
11 namespace proxy { 12 namespace proxy {
12 13
13 PluginGlobals* PluginGlobals::plugin_globals_ = NULL; 14 PluginGlobals* PluginGlobals::plugin_globals_ = NULL;
14 15
15 PluginGlobals::PluginGlobals() 16 PluginGlobals::PluginGlobals()
16 : ppapi::PpapiGlobals(), 17 : ppapi::PpapiGlobals(),
17 plugin_proxy_delegate_(NULL), 18 plugin_proxy_delegate_(NULL),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if (dispatcher) 53 if (dispatcher)
53 return dispatcher->GetFunctionAPI(id); 54 return dispatcher->GetFunctionAPI(id);
54 return NULL; 55 return NULL;
55 } 56 }
56 57
57 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) { 58 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) {
58 // Currently proxied plugins don't use the PP_Module for anything useful. 59 // Currently proxied plugins don't use the PP_Module for anything useful.
59 return 0; 60 return 0;
60 } 61 }
61 62
63 std::string PluginGlobals::GetCmdLine() {
64 return command_line_;
65 }
66
67 void PluginGlobals::PreCacheFontForFlash(const void* logfontw) {
68 plugin_proxy_delegate_->PreCacheFont(logfontw);
69 }
70
62 base::Lock* PluginGlobals::GetProxyLock() { 71 base::Lock* PluginGlobals::GetProxyLock() {
63 #ifdef ENABLE_PEPPER_THREADING 72 #ifdef ENABLE_PEPPER_THREADING
64 return &proxy_lock_; 73 return &proxy_lock_;
65 #else 74 #else
66 return NULL; 75 return NULL;
67 #endif 76 #endif
68 } 77 }
69 78
70 void PluginGlobals::LogWithSource(PP_Instance instance, 79 void PluginGlobals::LogWithSource(PP_Instance instance,
71 PP_LogLevel_Dev level, 80 PP_LogLevel_Dev level,
(...skipping 12 matching lines...) Expand all
84 // for the "instance = 0" case. 93 // for the "instance = 0" case.
85 LogWithSource(0, level, source, value); 94 LogWithSource(0, level, source, value);
86 } 95 }
87 96
88 bool PluginGlobals::IsPluginGlobals() const { 97 bool PluginGlobals::IsPluginGlobals() const {
89 return true; 98 return true;
90 } 99 }
91 100
92 } // namespace proxy 101 } // namespace proxy
93 } // namespace ppapi 102 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698