| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 net::URLRequestContextGetter* request_context, | 75 net::URLRequestContextGetter* request_context, |
| 76 RenderWidgetHelper* render_widget_helper); | 76 RenderWidgetHelper* render_widget_helper); |
| 77 | 77 |
| 78 // BrowserMessageFilter methods: | 78 // BrowserMessageFilter methods: |
| 79 virtual void OverrideThreadForMessage(const IPC::Message& message, | 79 virtual void OverrideThreadForMessage(const IPC::Message& message, |
| 80 BrowserThread::ID* thread); | 80 BrowserThread::ID* thread); |
| 81 virtual bool OnMessageReceived(const IPC::Message& message, | 81 virtual bool OnMessageReceived(const IPC::Message& message, |
| 82 bool* message_was_ok); | 82 bool* message_was_ok); |
| 83 virtual void OnDestruct() const; | 83 virtual void OnDestruct() const; |
| 84 | 84 |
| 85 bool SaveLocalState() const; |
| 86 |
| 85 int render_process_id() const { return render_process_id_; } | 87 int render_process_id() const { return render_process_id_; } |
| 86 ResourceDispatcherHost* resource_dispatcher_host() { | 88 ResourceDispatcherHost* resource_dispatcher_host() { |
| 87 return resource_dispatcher_host_; | 89 return resource_dispatcher_host_; |
| 88 } | 90 } |
| 89 bool incognito() { return incognito_; } | 91 bool incognito() { return incognito_; } |
| 90 | 92 |
| 91 // Returns either the extension net::URLRequestContext or regular | 93 // Returns either the extension net::URLRequestContext or regular |
| 92 // net::URLRequestContext depending on whether |url| is an extension URL. | 94 // net::URLRequestContext depending on whether |url| is an extension URL. |
| 93 // Only call on the IO thread. | 95 // Only call on the IO thread. |
| 94 net::URLRequestContext* GetRequestContextForURL(const GURL& url); | 96 net::URLRequestContext* GetRequestContextForURL(const GURL& url); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 base::TimeTicks last_plugin_refresh_time_; | 246 base::TimeTicks last_plugin_refresh_time_; |
| 245 | 247 |
| 246 scoped_refptr<WebKitContext> webkit_context_; | 248 scoped_refptr<WebKitContext> webkit_context_; |
| 247 | 249 |
| 248 int render_process_id_; | 250 int render_process_id_; |
| 249 | 251 |
| 250 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 252 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
| 251 }; | 253 }; |
| 252 | 254 |
| 253 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 255 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |