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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Message handlers. | 90 // Message handlers. |
91 void OnLoadPlugin(const FilePath& path, | 91 void OnLoadPlugin(const FilePath& path, |
92 const ppapi::PpapiPermissions& permissions); | 92 const ppapi::PpapiPermissions& permissions); |
93 void OnCreateChannel(base::ProcessId renderer_pid, | 93 void OnCreateChannel(base::ProcessId renderer_pid, |
94 int renderer_child_id, | 94 int renderer_child_id, |
95 bool incognito); | 95 bool incognito); |
96 void OnResourceReply( | 96 void OnResourceReply( |
97 const ppapi::proxy::ResourceMessageReplyParams& reply_params, | 97 const ppapi::proxy::ResourceMessageReplyParams& reply_params, |
98 const IPC::Message& nested_msg); | 98 const IPC::Message& nested_msg); |
99 void OnSetNetworkState(bool online); | 99 void OnSetNetworkState(bool online); |
| 100 void OnCrash(); |
| 101 void OnHang(); |
100 | 102 |
101 // Sets up the channel to the given renderer. On success, returns true and | 103 // Sets up the channel to the given renderer. On success, returns true and |
102 // fills the given ChannelHandle with the information from the new channel. | 104 // fills the given ChannelHandle with the information from the new channel. |
103 bool SetupRendererChannel(base::ProcessId renderer_pid, | 105 bool SetupRendererChannel(base::ProcessId renderer_pid, |
104 int renderer_child_id, | 106 int renderer_child_id, |
105 bool incognito, | 107 bool incognito, |
106 IPC::ChannelHandle* handle); | 108 IPC::ChannelHandle* handle); |
107 | 109 |
108 // Sets up the name of the plugin for logging using the given path. | 110 // Sets up the name of the plugin for logging using the given path. |
109 void SavePluginName(const FilePath& path); | 111 void SavePluginName(const FilePath& path); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #endif | 151 #endif |
150 | 152 |
151 DispatcherMessageListener dispatcher_message_listener_; | 153 DispatcherMessageListener dispatcher_message_listener_; |
152 | 154 |
153 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); | 155 DISALLOW_IMPLICIT_CONSTRUCTORS(PpapiThread); |
154 }; | 156 }; |
155 | 157 |
156 } // namespace content | 158 } // namespace content |
157 | 159 |
158 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ | 160 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_THREAD_H_ |
OLD | NEW |