| 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> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 // This class filters out incoming IPC messages for the renderer process on the | 56 // This class filters out incoming IPC messages for the renderer process on the |
| 57 // IPC thread. | 57 // IPC thread. |
| 58 class RenderMessageFilter : public BrowserMessageFilter { | 58 class RenderMessageFilter : public BrowserMessageFilter { |
| 59 public: | 59 public: |
| 60 // Create the filter. | 60 // Create the filter. |
| 61 RenderMessageFilter(int render_process_id, | 61 RenderMessageFilter(int render_process_id, |
| 62 PluginService* plugin_service, | 62 PluginService* plugin_service, |
| 63 Profile* profile, | 63 Profile* profile, |
| 64 URLRequestContextGetter* request_context, |
| 64 RenderWidgetHelper* render_widget_helper); | 65 RenderWidgetHelper* render_widget_helper); |
| 65 | 66 |
| 66 // BrowserMessageFilter methods: | 67 // BrowserMessageFilter methods: |
| 67 virtual bool OnMessageReceived(const IPC::Message& message, | 68 virtual bool OnMessageReceived(const IPC::Message& message, |
| 68 bool* message_was_ok); | 69 bool* message_was_ok); |
| 69 virtual void OnDestruct() const; | 70 virtual void OnDestruct() const; |
| 70 | 71 |
| 71 int render_process_id() const { return render_process_id_; } | 72 int render_process_id() const { return render_process_id_; } |
| 72 ResourceDispatcherHost* resource_dispatcher_host() { | 73 ResourceDispatcherHost* resource_dispatcher_host() { |
| 73 return resource_dispatcher_host_; | 74 return resource_dispatcher_host_; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 virtual ~CookiesEnabledCompletion(); | 391 virtual ~CookiesEnabledCompletion(); |
| 391 | 392 |
| 392 virtual void RunWithParams(const Tuple1<int>& params); | 393 virtual void RunWithParams(const Tuple1<int>& params); |
| 393 | 394 |
| 394 private: | 395 private: |
| 395 IPC::Message* reply_msg_; | 396 IPC::Message* reply_msg_; |
| 396 scoped_refptr<RenderMessageFilter> filter_; | 397 scoped_refptr<RenderMessageFilter> filter_; |
| 397 }; | 398 }; |
| 398 | 399 |
| 399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 400 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |