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

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

Issue 20214004: move BrowserFontResource_Trusted to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android enable_plugins Created 7 years, 4 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
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 #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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/thread_local_storage.h" 13 #include "base/threading/thread_local_storage.h"
14 #include "ppapi/proxy/connection.h"
14 #include "ppapi/proxy/plugin_resource_tracker.h" 15 #include "ppapi/proxy/plugin_resource_tracker.h"
15 #include "ppapi/proxy/plugin_var_tracker.h" 16 #include "ppapi/proxy/plugin_var_tracker.h"
16 #include "ppapi/proxy/ppapi_proxy_export.h" 17 #include "ppapi/proxy/ppapi_proxy_export.h"
17 #include "ppapi/shared_impl/callback_tracker.h" 18 #include "ppapi/shared_impl/callback_tracker.h"
18 #include "ppapi/shared_impl/ppapi_globals.h" 19 #include "ppapi/shared_impl/ppapi_globals.h"
19 20
20 namespace base { 21 namespace base {
21 class Thread; 22 class Thread;
22 } 23 }
23 namespace IPC { 24 namespace IPC {
24 class Sender; 25 class Sender;
25 } 26 }
26 27
28 struct PP_BrowserFont_Trusted_Description;
29
27 namespace ppapi { 30 namespace ppapi {
31
32 struct Preferences;
33
28 namespace proxy { 34 namespace proxy {
29 35
30 class MessageLoopResource; 36 class MessageLoopResource;
31 class PluginProxyDelegate; 37 class PluginProxyDelegate;
32 38
33 class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals { 39 class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals {
34 public: 40 public:
35 PluginGlobals(); 41 PluginGlobals();
36 explicit PluginGlobals(PpapiGlobals::PerThreadForTest); 42 explicit PluginGlobals(PpapiGlobals::PerThreadForTest);
37 virtual ~PluginGlobals(); 43 virtual ~PluginGlobals();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 78
73 // Returns the channel for sending to the browser. 79 // Returns the channel for sending to the browser.
74 IPC::Sender* GetBrowserSender(); 80 IPC::Sender* GetBrowserSender();
75 81
76 // Returns the language code of the current UI language. 82 // Returns the language code of the current UI language.
77 std::string GetUILanguage(); 83 std::string GetUILanguage();
78 84
79 // Sets the active url which is reported by breakpad. 85 // Sets the active url which is reported by breakpad.
80 void SetActiveURL(const std::string& url); 86 void SetActiveURL(const std::string& url);
81 87
88 PP_Resource CreateBrowserFont(
89 Connection connection,
90 PP_Instance instance,
91 const PP_BrowserFont_Trusted_Description& desc,
92 const ppapi::Preferences& prefs);
yzshen1 2013/07/25 17:21:08 nit: ppapi:: is not needed.
scottmg 2013/07/25 17:39:49 Done.
93
82 // Getters for the plugin-specific versions. 94 // Getters for the plugin-specific versions.
83 PluginResourceTracker* plugin_resource_tracker() { 95 PluginResourceTracker* plugin_resource_tracker() {
84 return &plugin_resource_tracker_; 96 return &plugin_resource_tracker_;
85 } 97 }
86 PluginVarTracker* plugin_var_tracker() { 98 PluginVarTracker* plugin_var_tracker() {
87 return &plugin_var_tracker_; 99 return &plugin_var_tracker_;
88 } 100 }
89 101
90 // The embedder should call set_proxy_delegate during startup. 102 // The embedder should call set_proxy_delegate during startup.
91 void set_plugin_proxy_delegate(PluginProxyDelegate* d) { 103 void set_plugin_proxy_delegate(PluginProxyDelegate* d) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // lazily, since it might not be needed. 164 // lazily, since it might not be needed.
153 scoped_ptr<base::Thread> file_thread_; 165 scoped_ptr<base::Thread> file_thread_;
154 166
155 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); 167 DISALLOW_COPY_AND_ASSIGN(PluginGlobals);
156 }; 168 };
157 169
158 } // namespace proxy 170 } // namespace proxy
159 } // namespace ppapi 171 } // namespace ppapi
160 172
161 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ 173 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698