OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RESOURCE_MSG_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // ResourceDispatcherHost::Receiver methods: | 101 // ResourceDispatcherHost::Receiver methods: |
102 virtual bool Send(IPC::Message* message); | 102 virtual bool Send(IPC::Message* message); |
103 virtual URLRequestContext* GetRequestContext( | 103 virtual URLRequestContext* GetRequestContext( |
104 uint32 request_id, | 104 uint32 request_id, |
105 const ViewHostMsg_Resource_Request& request_data); | 105 const ViewHostMsg_Resource_Request& request_data); |
106 | 106 |
107 SpellChecker* spellchecker() { return spellchecker_.get(); } | 107 SpellChecker* spellchecker() { return spellchecker_.get(); } |
108 ResourceDispatcherHost* resource_dispatcher_host() { | 108 ResourceDispatcherHost* resource_dispatcher_host() { |
109 return resource_dispatcher_host_; | 109 return resource_dispatcher_host_; |
110 } | 110 } |
111 MessageLoop* ui_loop(); | |
112 bool off_the_record() { return off_the_record_; } | 111 bool off_the_record() { return off_the_record_; } |
113 CallbackWithReturnValue<int>::Type* next_route_id_callback() { | 112 CallbackWithReturnValue<int>::Type* next_route_id_callback() { |
114 return next_route_id_callback_.get(); | 113 return next_route_id_callback_.get(); |
115 } | 114 } |
116 | 115 |
117 // NotificationObserver implementation. | 116 // NotificationObserver implementation. |
118 virtual void Observe(NotificationType type, | 117 virtual void Observe(NotificationType type, |
119 const NotificationSource& source, | 118 const NotificationSource& source, |
120 const NotificationDetails& details); | 119 const NotificationDetails& details); |
121 | 120 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // Whether this process is used for off the record tabs. | 385 // Whether this process is used for off the record tabs. |
387 bool off_the_record_; | 386 bool off_the_record_; |
388 | 387 |
389 // A callback to create a routing id for the associated renderer process. | 388 // A callback to create a routing id for the associated renderer process. |
390 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 389 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
391 | 390 |
392 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 391 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
393 }; | 392 }; |
394 | 393 |
395 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 394 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
OLD | NEW |