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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void OnPluginShutdownRequest(); | 114 void OnPluginShutdownRequest(); |
115 void OnPluginMessage(const std::vector<uint8>& data); | 115 void OnPluginMessage(const std::vector<uint8>& data); |
116 void OnGetPluginDataDir(std::wstring* retval); | |
117 void OnCreateWindow(HWND parent, IPC::Message* reply_msg); | 116 void OnCreateWindow(HWND parent, IPC::Message* reply_msg); |
118 void OnDestroyWindow(HWND window); | 117 void OnDestroyWindow(HWND window); |
119 | 118 |
120 struct ChannelRequest { | 119 struct ChannelRequest { |
121 ChannelRequest(ResourceMessageFilter* renderer_message_filter, | 120 ChannelRequest(ResourceMessageFilter* renderer_message_filter, |
122 const std::string& m, IPC::Message* r) : | 121 const std::string& m, IPC::Message* r) : |
123 renderer_message_filter_(renderer_message_filter), mime_type(m), | 122 renderer_message_filter_(renderer_message_filter), mime_type(m), |
124 reply_msg(r) { } | 123 reply_msg(r) { } |
125 std::string mime_type; | 124 std::string mime_type; |
126 IPC::Message* reply_msg; | 125 IPC::Message* reply_msg; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // This RevocableStore prevents ResolveProxy completion callbacks from | 160 // This RevocableStore prevents ResolveProxy completion callbacks from |
162 // accessing a deleted PluginProcessHost (since we do not cancel the | 161 // accessing a deleted PluginProcessHost (since we do not cancel the |
163 // in-progress resolve requests during destruction). | 162 // in-progress resolve requests during destruction). |
164 RevocableStore revocable_store_; | 163 RevocableStore revocable_store_; |
165 | 164 |
166 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); | 165 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessHost); |
167 }; | 166 }; |
168 | 167 |
169 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 168 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
170 | 169 |
OLD | NEW |