OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "app/surface/transport_dib.h" | 16 #include "app/surface/transport_dib.h" |
17 #include "base/file_path.h" | 17 #include "base/file_path.h" |
18 #include "base/linked_ptr.h" | 18 #include "base/linked_ptr.h" |
19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
20 #include "base/string16.h" | 20 #include "base/string16.h" |
21 #include "base/task.h" | 21 #include "base/task.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "chrome/browser/net/resolve_proxy_msg_helper.h" | 23 #include "chrome/browser/net/resolve_proxy_msg_helper.h" |
24 #include "chrome/common/extensions/extension.h" | |
jam
2011/03/15 00:38:31
not needed?
Charlie Reis
2011/03/15 06:23:42
Done.
| |
24 #include "chrome/common/content_settings.h" | 25 #include "chrome/common/content_settings.h" |
25 #include "content/browser/browser_message_filter.h" | 26 #include "content/browser/browser_message_filter.h" |
26 #include "content/browser/in_process_webkit/webkit_context.h" | 27 #include "content/browser/in_process_webkit/webkit_context.h" |
27 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 28 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
30 #include "ui/gfx/native_widget_types.h" | 31 #include "ui/gfx/native_widget_types.h" |
31 | 32 |
32 class ChromeURLRequestContext; | 33 class ChromeURLRequestContext; |
33 struct FontDescriptor; | 34 struct FontDescriptor; |
(...skipping 22 matching lines...) Expand all Loading... | |
56 | 57 |
57 // This class filters out incoming IPC messages for the renderer process on the | 58 // This class filters out incoming IPC messages for the renderer process on the |
58 // IPC thread. | 59 // IPC thread. |
59 class RenderMessageFilter : public BrowserMessageFilter, | 60 class RenderMessageFilter : public BrowserMessageFilter, |
60 public ResolveProxyMsgHelper::Delegate { | 61 public ResolveProxyMsgHelper::Delegate { |
61 public: | 62 public: |
62 // Create the filter. | 63 // Create the filter. |
63 RenderMessageFilter(int render_process_id, | 64 RenderMessageFilter(int render_process_id, |
64 PluginService* plugin_service, | 65 PluginService* plugin_service, |
65 Profile* profile, | 66 Profile* profile, |
67 URLRequestContextGetter* request_context, | |
66 RenderWidgetHelper* render_widget_helper); | 68 RenderWidgetHelper* render_widget_helper); |
67 | 69 |
68 // BrowserMessageFilter methods: | 70 // BrowserMessageFilter methods: |
69 virtual bool OnMessageReceived(const IPC::Message& message, | 71 virtual bool OnMessageReceived(const IPC::Message& message, |
70 bool* message_was_ok); | 72 bool* message_was_ok); |
71 virtual void OnDestruct() const; | 73 virtual void OnDestruct() const; |
72 | 74 |
73 int render_process_id() const { return render_process_id_; } | 75 int render_process_id() const { return render_process_id_; } |
74 ResourceDispatcherHost* resource_dispatcher_host() { | 76 ResourceDispatcherHost* resource_dispatcher_host() { |
75 return resource_dispatcher_host_; | 77 return resource_dispatcher_host_; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
401 virtual ~CookiesEnabledCompletion(); | 403 virtual ~CookiesEnabledCompletion(); |
402 | 404 |
403 virtual void RunWithParams(const Tuple1<int>& params); | 405 virtual void RunWithParams(const Tuple1<int>& params); |
404 | 406 |
405 private: | 407 private: |
406 IPC::Message* reply_msg_; | 408 IPC::Message* reply_msg_; |
407 scoped_refptr<RenderMessageFilter> filter_; | 409 scoped_refptr<RenderMessageFilter> filter_; |
408 }; | 410 }; |
409 | 411 |
410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 412 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |