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_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 private: | 95 private: |
96 void OnMsgCreateWindow(int opener_id, bool user_gesture, int* route_id, | 96 void OnMsgCreateWindow(int opener_id, bool user_gesture, int* route_id, |
97 ModalDialogEvent* modal_dialog_event); | 97 ModalDialogEvent* modal_dialog_event); |
98 void OnMsgCreateWidget(int opener_id, bool activatable, int* route_id); | 98 void OnMsgCreateWidget(int opener_id, bool activatable, int* route_id); |
99 void OnRequestResource(const IPC::Message& msg, int request_id, | 99 void OnRequestResource(const IPC::Message& msg, int request_id, |
100 const ViewHostMsg_Resource_Request& request); | 100 const ViewHostMsg_Resource_Request& request); |
101 void OnCancelRequest(int request_id); | 101 void OnCancelRequest(int request_id); |
102 void OnClosePageACK(int new_render_process_host_id, int new_request_id); | 102 void OnClosePageACK(int new_render_process_host_id, int new_request_id); |
103 void OnDataReceivedACK(int request_id); | 103 void OnDataReceivedACK(int request_id); |
| 104 void OnDownloadProgressACK(int request_id); |
104 void OnUploadProgressACK(int request_id); | 105 void OnUploadProgressACK(int request_id); |
105 void OnSyncLoad(int request_id, | 106 void OnSyncLoad(int request_id, |
106 const ViewHostMsg_Resource_Request& request, | 107 const ViewHostMsg_Resource_Request& request, |
107 IPC::Message* result_message); | 108 IPC::Message* result_message); |
108 void OnSetCookie(const GURL& url, const GURL& policy_url, | 109 void OnSetCookie(const GURL& url, const GURL& policy_url, |
109 const std::string& cookie); | 110 const std::string& cookie); |
110 void OnGetCookies(const GURL& url, const GURL& policy_url, | 111 void OnGetCookies(const GURL& url, const GURL& policy_url, |
111 std::string* cookies); | 112 std::string* cookies); |
112 void OnGetDataDir(std::wstring* data_dir); | 113 void OnGetDataDir(std::wstring* data_dir); |
113 void OnPluginMessage(const FilePath& plugin_path, | 114 void OnPluginMessage(const FilePath& plugin_path, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages | 245 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages |
245 // the requests to the proxy service). | 246 // the requests to the proxy service). |
246 ResolveProxyMsgHelper resolve_proxy_msg_helper_; | 247 ResolveProxyMsgHelper resolve_proxy_msg_helper_; |
247 | 248 |
248 // Process handle of the renderer process. | 249 // Process handle of the renderer process. |
249 base::ProcessHandle render_handle_; | 250 base::ProcessHandle render_handle_; |
250 | 251 |
251 // Contextual information to be used for requests created here. | 252 // Contextual information to be used for requests created here. |
252 scoped_refptr<URLRequestContext> request_context_; | 253 scoped_refptr<URLRequestContext> request_context_; |
253 | 254 |
| 255 // A request context specific for media resources. |
| 256 scoped_refptr<URLRequestContext> media_request_context_; |
| 257 |
254 // A pointer to the profile associated with this filter. | 258 // A pointer to the profile associated with this filter. |
255 // | 259 // |
256 // DANGER! Do not dereference this pointer! This class lives on the I/O thread | 260 // DANGER! Do not dereference this pointer! This class lives on the I/O thread |
257 // and the profile may only be used on the UI thread. It is used only for | 261 // and the profile may only be used on the UI thread. It is used only for |
258 // determining which notifications to watch for. | 262 // determining which notifications to watch for. |
259 // | 263 // |
260 // This is void* to prevent people from accidentally dereferencing it. | 264 // This is void* to prevent people from accidentally dereferencing it. |
261 // When registering for observers, cast to Profile*. | 265 // When registering for observers, cast to Profile*. |
262 void* profile_; | 266 void* profile_; |
263 | 267 |
264 scoped_refptr<RenderWidgetHelper> render_widget_helper_; | 268 scoped_refptr<RenderWidgetHelper> render_widget_helper_; |
265 | 269 |
266 // Object that should take care of audio related resource requests. | 270 // Object that should take care of audio related resource requests. |
267 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 271 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
268 | 272 |
269 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 273 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
270 }; | 274 }; |
271 | 275 |
272 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 276 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
OLD | NEW |