OLD | NEW |
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 CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const base::SharedMemoryHandle& handle, | 84 const base::SharedMemoryHandle& handle, |
85 base::ProcessId remote_pid) override; | 85 base::ProcessId remote_pid) override; |
86 uint32 Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) override; | 86 uint32 Register(ppapi::proxy::PluginDispatcher* plugin_dispatcher) override; |
87 void Unregister(uint32 plugin_dispatcher_id) override; | 87 void Unregister(uint32 plugin_dispatcher_id) override; |
88 | 88 |
89 // PluginProxyDelegate. | 89 // PluginProxyDelegate. |
90 // SendToBrowser() is intended to be safe to use on another thread so | 90 // SendToBrowser() is intended to be safe to use on another thread so |
91 // long as the main PpapiThread outlives it. | 91 // long as the main PpapiThread outlives it. |
92 IPC::Sender* GetBrowserSender() override; | 92 IPC::Sender* GetBrowserSender() override; |
93 std::string GetUILanguage() override; | 93 std::string GetUILanguage() override; |
94 void PreCacheFont(const void* logfontw) override; | 94 void PreCacheFontForFlash(const void* logfontw) override; |
95 void SetActiveURL(const std::string& url) override; | 95 void SetActiveURL(const std::string& url) override; |
96 PP_Resource CreateBrowserFont(ppapi::proxy::Connection connection, | 96 PP_Resource CreateBrowserFont(ppapi::proxy::Connection connection, |
97 PP_Instance instance, | 97 PP_Instance instance, |
98 const PP_BrowserFont_Trusted_Description& desc, | 98 const PP_BrowserFont_Trusted_Description& desc, |
99 const ppapi::Preferences& prefs) override; | 99 const ppapi::Preferences& prefs) override; |
100 | 100 |
101 // Message handlers. | 101 // Message handlers. |
102 void OnLoadPlugin(const base::FilePath& path, | 102 void OnLoadPlugin(const base::FilePath& path, |
103 const ppapi::PpapiPermissions& permissions); | 103 const ppapi::PpapiPermissions& permissions); |
104 void OnCreateChannel(base::ProcessId renderer_pid, | 104 void OnCreateChannel(base::ProcessId renderer_pid, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 167 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
168 }; | 168 }; |
169 | 169 |
170 #if defined(COMPILER_MSVC) | 170 #if defined(COMPILER_MSVC) |
171 #pragma warning(pop) | 171 #pragma warning(pop) |
172 #endif | 172 #endif |
173 | 173 |
174 } // namespace content | 174 } // namespace content |
175 | 175 |
176 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 176 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |