OLD | NEW |
1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 6 #define CHROME_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 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual bool OnMessageReceived(const IPC::Message& message, | 77 virtual bool OnMessageReceived(const IPC::Message& message, |
78 bool* message_was_ok); | 78 bool* message_was_ok); |
79 virtual void OnDestruct() const; | 79 virtual void OnDestruct() const; |
80 | 80 |
81 int render_process_id() const { return render_process_id_; } | 81 int render_process_id() const { return render_process_id_; } |
82 ResourceDispatcherHost* resource_dispatcher_host() { | 82 ResourceDispatcherHost* resource_dispatcher_host() { |
83 return resource_dispatcher_host_; | 83 return resource_dispatcher_host_; |
84 } | 84 } |
85 bool off_the_record() { return off_the_record_; } | 85 bool off_the_record() { return off_the_record_; } |
86 | 86 |
87 // Returns either the extension URLRequestContext or regular URLRequestContext | 87 // Returns either the extension net::URLRequestContext or regular |
88 // depending on whether |url| is an extension URL. | 88 // net::URLRequestContext depending on whether |url| is an extension URL. |
89 // Only call on the IO thread. | 89 // Only call on the IO thread. |
90 ChromeURLRequestContext* GetRequestContextForURL(const GURL& url); | 90 ChromeURLRequestContext* GetRequestContextForURL(const GURL& url); |
91 | 91 |
92 private: | 92 private: |
93 friend class BrowserThread; | 93 friend class BrowserThread; |
94 friend class DeleteTask<RenderMessageFilter>; | 94 friend class DeleteTask<RenderMessageFilter>; |
95 | 95 |
96 virtual ~RenderMessageFilter(); | 96 virtual ~RenderMessageFilter(); |
97 | 97 |
98 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params, | 98 void OnMsgCreateWindow(const ViewHostMsg_CreateWindow_Params& params, |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 virtual ~CookiesEnabledCompletion(); | 494 virtual ~CookiesEnabledCompletion(); |
495 | 495 |
496 virtual void RunWithParams(const Tuple1<int>& params); | 496 virtual void RunWithParams(const Tuple1<int>& params); |
497 | 497 |
498 private: | 498 private: |
499 IPC::Message* reply_msg_; | 499 IPC::Message* reply_msg_; |
500 scoped_refptr<RenderMessageFilter> filter_; | 500 scoped_refptr<RenderMessageFilter> filter_; |
501 }; | 501 }; |
502 | 502 |
503 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 503 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |