OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const ViewHostMsg_Resource_Request& request); | 104 const ViewHostMsg_Resource_Request& request); |
105 void OnCancelRequest(int request_id); | 105 void OnCancelRequest(int request_id); |
106 void OnDataReceivedACK(int request_id); | 106 void OnDataReceivedACK(int request_id); |
107 void OnUploadProgressACK(int request_id); | 107 void OnUploadProgressACK(int request_id); |
108 void OnSyncLoad(int request_id, | 108 void OnSyncLoad(int request_id, |
109 const ViewHostMsg_Resource_Request& request, | 109 const ViewHostMsg_Resource_Request& request, |
110 IPC::Message* sync_result); | 110 IPC::Message* sync_result); |
111 void OnGetCookies(uint32 request_context, const GURL& url, | 111 void OnGetCookies(uint32 request_context, const GURL& url, |
112 std::string* cookies); | 112 std::string* cookies); |
113 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 113 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
114 | |
115 void OnPluginShutdownRequest(); | 114 void OnPluginShutdownRequest(); |
116 void OnPluginMessage(const std::vector<uint8>& data); | 115 void OnPluginMessage(const std::vector<uint8>& data); |
117 void OnGetPluginDataDir(std::wstring* retval); | 116 void OnGetPluginDataDir(std::wstring* retval); |
| 117 void OnCreateWindow(HWND parent, IPC::Message* reply_msg); |
| 118 void OnDestroyWindow(HWND window); |
118 | 119 |
119 struct ChannelRequest { | 120 struct ChannelRequest { |
120 ChannelRequest(ResourceMessageFilter* renderer_message_filter, | 121 ChannelRequest(ResourceMessageFilter* renderer_message_filter, |
121 const std::string& m, IPC::Message* r) : | 122 const std::string& m, IPC::Message* r) : |
122 renderer_message_filter_(renderer_message_filter), mime_type(m), | 123 renderer_message_filter_(renderer_message_filter), mime_type(m), |
123 reply_msg(r) { } | 124 reply_msg(r) { } |
124 std::string mime_type; | 125 std::string mime_type; |
125 IPC::Message* reply_msg; | 126 IPC::Message* reply_msg; |
126 scoped_refptr<ResourceMessageFilter> renderer_message_filter_; | 127 scoped_refptr<ResourceMessageFilter> renderer_message_filter_; |
127 }; | 128 }; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // This RevocableStore prevents ResolveProxy completion callbacks from | 161 // This RevocableStore prevents ResolveProxy completion callbacks from |
161 // accessing a deleted PluginProcessHost (since we do not cancel the | 162 // accessing a deleted PluginProcessHost (since we do not cancel the |
162 // in-progress resolve requests during destruction). | 163 // in-progress resolve requests during destruction). |
163 RevocableStore revocable_store_; | 164 RevocableStore revocable_store_; |
164 | 165 |
165 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 166 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
166 }; | 167 }; |
167 | 168 |
168 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 169 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
169 | 170 |
OLD | NEW |