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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 int render_process_id() const { return render_process_id_; } | 85 int render_process_id() const { return render_process_id_; } |
86 ResourceDispatcherHost* resource_dispatcher_host() { | 86 ResourceDispatcherHost* resource_dispatcher_host() { |
87 return resource_dispatcher_host_; | 87 return resource_dispatcher_host_; |
88 } | 88 } |
| 89 bool save_local_state() { return save_local_state_; } |
89 bool incognito() { return incognito_; } | 90 bool incognito() { return incognito_; } |
90 | 91 |
91 // Returns either the extension net::URLRequestContext or regular | 92 // Returns either the extension net::URLRequestContext or regular |
92 // net::URLRequestContext depending on whether |url| is an extension URL. | 93 // net::URLRequestContext depending on whether |url| is an extension URL. |
93 // Only call on the IO thread. | 94 // Only call on the IO thread. |
94 net::URLRequestContext* GetRequestContextForURL(const GURL& url); | 95 net::URLRequestContext* GetRequestContextForURL(const GURL& url); |
95 | 96 |
96 private: | 97 private: |
97 friend class BrowserThread; | 98 friend class BrowserThread; |
98 friend class DeleteTask<RenderMessageFilter>; | 99 friend class DeleteTask<RenderMessageFilter>; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 scoped_refptr<net::URLRequestContextGetter> request_context_; | 231 scoped_refptr<net::URLRequestContextGetter> request_context_; |
231 | 232 |
232 // The ResourceContext which is to be used on the IO thread. | 233 // The ResourceContext which is to be used on the IO thread. |
233 const content::ResourceContext& resource_context_; | 234 const content::ResourceContext& resource_context_; |
234 | 235 |
235 // A request context that holds a cookie store for chrome-extension URLs. | 236 // A request context that holds a cookie store for chrome-extension URLs. |
236 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; | 237 scoped_refptr<net::URLRequestContextGetter> extensions_request_context_; |
237 | 238 |
238 scoped_refptr<RenderWidgetHelper> render_widget_helper_; | 239 scoped_refptr<RenderWidgetHelper> render_widget_helper_; |
239 | 240 |
| 241 // Whether the profile attached to this process wants to save local state. |
| 242 bool save_local_state_; |
| 243 |
240 // Whether this process is used for incognito tabs. | 244 // Whether this process is used for incognito tabs. |
241 bool incognito_; | 245 bool incognito_; |
242 | 246 |
243 // Initialized to 0, accessed on FILE thread only. | 247 // Initialized to 0, accessed on FILE thread only. |
244 base::TimeTicks last_plugin_refresh_time_; | 248 base::TimeTicks last_plugin_refresh_time_; |
245 | 249 |
246 scoped_refptr<WebKitContext> webkit_context_; | 250 scoped_refptr<WebKitContext> webkit_context_; |
247 | 251 |
248 int render_process_id_; | 252 int render_process_id_; |
249 | 253 |
250 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 254 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
251 }; | 255 }; |
252 | 256 |
253 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |