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 15 matching lines...) Expand all Loading... |
26 #include "webkit/api/public/WebCache.h" | 26 #include "webkit/api/public/WebCache.h" |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 #include <windows.h> | 29 #include <windows.h> |
30 #endif | 30 #endif |
31 | 31 |
32 class AppCacheDispatcherHost; | 32 class AppCacheDispatcherHost; |
33 class AudioRendererHost; | 33 class AudioRendererHost; |
34 class Clipboard; | 34 class Clipboard; |
35 class DOMStorageDispatcherHost; | 35 class DOMStorageDispatcherHost; |
| 36 class ExtensionMessageService; |
36 class Profile; | 37 class Profile; |
37 class RenderWidgetHelper; | 38 class RenderWidgetHelper; |
38 class SpellChecker; | 39 class SpellChecker; |
39 struct ViewHostMsg_Audio_CreateStream; | 40 struct ViewHostMsg_Audio_CreateStream; |
40 struct WebPluginInfo; | 41 struct WebPluginInfo; |
41 | 42 |
42 namespace printing { | 43 namespace printing { |
43 class PrinterQuery; | 44 class PrinterQuery; |
44 class PrintJobManager; | 45 class PrintJobManager; |
45 } | 46 } |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int routing_id, | 214 int routing_id, |
214 IPC::Message* reply_msg); | 215 IPC::Message* reply_msg); |
215 #endif | 216 #endif |
216 // Browser side transport DIB allocation | 217 // Browser side transport DIB allocation |
217 void OnAllocTransportDIB(size_t size, | 218 void OnAllocTransportDIB(size_t size, |
218 TransportDIB::Handle* result); | 219 TransportDIB::Handle* result); |
219 void OnFreeTransportDIB(TransportDIB::Id dib_id); | 220 void OnFreeTransportDIB(TransportDIB::Id dib_id); |
220 | 221 |
221 void OnOpenChannelToExtension(int routing_id, const std::string& extension_id, | 222 void OnOpenChannelToExtension(int routing_id, const std::string& extension_id, |
222 const std::string& channel_name, int* port_id); | 223 const std::string& channel_name, int* port_id); |
| 224 void OnOpenChannelToTab(int routing_id, int tab_id, |
| 225 const std::string& extension_id, |
| 226 const std::string& channel_name, int* port_id); |
223 | 227 |
224 void OnCloseIdleConnections(); | 228 void OnCloseIdleConnections(); |
225 void OnSetCacheMode(bool enabled); | 229 void OnSetCacheMode(bool enabled); |
226 | 230 |
227 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); | 231 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); |
228 void ReplyGetFileSize(int64 result, void* param); | 232 void ReplyGetFileSize(int64 result, void* param); |
229 | 233 |
230 #if defined(OS_LINUX) | 234 #if defined(OS_LINUX) |
231 void SendDelayedReply(IPC::Message* reply_msg); | 235 void SendDelayedReply(IPC::Message* reply_msg); |
232 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); | 236 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages | 276 // Helper class for handling PluginProcessHost_ResolveProxy messages (manages |
273 // the requests to the proxy service). | 277 // the requests to the proxy service). |
274 ResolveProxyMsgHelper resolve_proxy_msg_helper_; | 278 ResolveProxyMsgHelper resolve_proxy_msg_helper_; |
275 | 279 |
276 // Contextual information to be used for requests created here. | 280 // Contextual information to be used for requests created here. |
277 scoped_refptr<URLRequestContext> request_context_; | 281 scoped_refptr<URLRequestContext> request_context_; |
278 | 282 |
279 // A request context specific for media resources. | 283 // A request context specific for media resources. |
280 scoped_refptr<URLRequestContext> media_request_context_; | 284 scoped_refptr<URLRequestContext> media_request_context_; |
281 | 285 |
| 286 // A request context that holds a cookie store for chrome-extension URLs. |
282 scoped_refptr<URLRequestContext> extensions_request_context_; | 287 scoped_refptr<URLRequestContext> extensions_request_context_; |
283 | 288 |
| 289 // Used for routing extension messages. |
| 290 scoped_refptr<ExtensionMessageService> extensions_message_service_; |
| 291 |
284 // A pointer to the profile associated with this filter. | 292 // A pointer to the profile associated with this filter. |
285 // | 293 // |
286 // DANGER! Do not dereference this pointer! This class lives on the I/O thread | 294 // DANGER! Do not dereference this pointer! This class lives on the I/O thread |
287 // and the profile may only be used on the UI thread. It is used only for | 295 // and the profile may only be used on the UI thread. It is used only for |
288 // determining which notifications to watch for. | 296 // determining which notifications to watch for. |
289 // | 297 // |
290 // This is void* to prevent people from accidentally dereferencing it. | 298 // This is void* to prevent people from accidentally dereferencing it. |
291 // When registering for observers, cast to Profile*. | 299 // When registering for observers, cast to Profile*. |
292 void* profile_; | 300 void* profile_; |
293 | 301 |
294 scoped_refptr<RenderWidgetHelper> render_widget_helper_; | 302 scoped_refptr<RenderWidgetHelper> render_widget_helper_; |
295 | 303 |
296 // Object that should take care of audio related resource requests. | 304 // Object that should take care of audio related resource requests. |
297 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 305 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
298 | 306 |
299 // Handles AppCache related messages. | 307 // Handles AppCache related messages. |
300 scoped_ptr<AppCacheDispatcherHost> app_cache_dispatcher_host_; | 308 scoped_ptr<AppCacheDispatcherHost> app_cache_dispatcher_host_; |
301 | 309 |
302 // Handles DOM Storage related messages. | 310 // Handles DOM Storage related messages. |
303 scoped_refptr<DOMStorageDispatcherHost> dom_storage_dispatcher_host_; | 311 scoped_refptr<DOMStorageDispatcherHost> dom_storage_dispatcher_host_; |
304 | 312 |
305 // Whether this process is used for off the record tabs. | 313 // Whether this process is used for off the record tabs. |
306 bool off_the_record_; | 314 bool off_the_record_; |
307 | 315 |
308 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 316 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
309 }; | 317 }; |
310 | 318 |
311 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 319 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
OLD | NEW |