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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void PreCacheFont(const void* logfontw) OVERRIDE; | 86 virtual void PreCacheFont(const void* logfontw) OVERRIDE; |
87 virtual void SetActiveURL(const std::string& url) OVERRIDE; | 87 virtual void SetActiveURL(const std::string& url) OVERRIDE; |
88 virtual PP_Resource CreateBrowserFont( | 88 virtual PP_Resource CreateBrowserFont( |
89 ppapi::proxy::Connection connection, | 89 ppapi::proxy::Connection connection, |
90 PP_Instance instance, | 90 PP_Instance instance, |
91 const PP_BrowserFont_Trusted_Description& desc, | 91 const PP_BrowserFont_Trusted_Description& desc, |
92 const ppapi::Preferences& prefs) OVERRIDE; | 92 const ppapi::Preferences& prefs) OVERRIDE; |
93 | 93 |
94 // Message handlers. | 94 // Message handlers. |
95 void OnLoadPlugin(const base::FilePath& path, | 95 void OnLoadPlugin(const base::FilePath& path, |
96 const ppapi::PpapiPermissions& permissions, | 96 const ppapi::PpapiPermissions& permissions); |
97 bool supports_dev_channel); | |
98 void OnCreateChannel(base::ProcessId renderer_pid, | 97 void OnCreateChannel(base::ProcessId renderer_pid, |
99 int renderer_child_id, | 98 int renderer_child_id, |
100 bool incognito); | 99 bool incognito); |
101 void OnSetNetworkState(bool online); | 100 void OnSetNetworkState(bool online); |
102 void OnCrash(); | 101 void OnCrash(); |
103 void OnHang(); | 102 void OnHang(); |
104 | 103 |
105 // Sets up the channel to the given renderer. On success, returns true and | 104 // Sets up the channel to the given renderer. On success, returns true and |
106 // fills the given ChannelHandle with the information from the new channel. | 105 // fills the given ChannelHandle with the information from the new channel. |
107 bool SetupRendererChannel(base::ProcessId renderer_pid, | 106 bool SetupRendererChannel(base::ProcessId renderer_pid, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Caches the handle to the peer process if this is a broker. | 152 // Caches the handle to the peer process if this is a broker. |
154 base::win::ScopedHandle peer_handle_; | 153 base::win::ScopedHandle peer_handle_; |
155 #endif | 154 #endif |
156 | 155 |
157 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 156 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
158 }; | 157 }; |
159 | 158 |
160 } // namespace content | 159 } // namespace content |
161 | 160 |
162 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 161 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |