| 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_COMMON_CHILD_THREAD_H_ | 5 #ifndef CHROME_COMMON_CHILD_THREAD_H_ |
| 6 #define CHROME_COMMON_CHILD_THREAD_H_ | 6 #define CHROME_COMMON_CHILD_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // See documentation on MessageRouter for AddRoute and RemoveRoute | 39 // See documentation on MessageRouter for AddRoute and RemoveRoute |
| 40 void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); | 40 void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); |
| 41 void RemoveRoute(int32 routing_id); | 41 void RemoveRoute(int32 routing_id); |
| 42 | 42 |
| 43 IPC::Channel::Listener* ResolveRoute(int32 routing_id); | 43 IPC::Channel::Listener* ResolveRoute(int32 routing_id); |
| 44 | 44 |
| 45 // Creates a ResourceLoaderBridge. | 45 // Creates a ResourceLoaderBridge. |
| 46 // Tests can override this method if they want a custom loading behavior. | 46 // Tests can override this method if they want a custom loading behavior. |
| 47 virtual webkit_glue::ResourceLoaderBridge* CreateBridge( | 47 virtual webkit_glue::ResourceLoaderBridge* CreateBridge( |
| 48 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info, | 48 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info); |
| 49 int host_renderer_id, | |
| 50 int host_render_view_id); | |
| 51 | 49 |
| 52 ResourceDispatcher* resource_dispatcher(); | 50 ResourceDispatcher* resource_dispatcher(); |
| 53 | 51 |
| 54 SocketStreamDispatcher* socket_stream_dispatcher() { | 52 SocketStreamDispatcher* socket_stream_dispatcher() { |
| 55 return socket_stream_dispatcher_.get(); | 53 return socket_stream_dispatcher_.get(); |
| 56 } | 54 } |
| 57 | 55 |
| 58 FileSystemDispatcher* file_system_dispatcher() const { | 56 FileSystemDispatcher* file_system_dispatcher() const { |
| 59 return file_system_dispatcher_.get(); | 57 return file_system_dispatcher_.get(); |
| 60 } | 58 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 MessageLoop* message_loop_; | 120 MessageLoop* message_loop_; |
| 123 | 121 |
| 124 scoped_ptr<NotificationService> notification_service_; | 122 scoped_ptr<NotificationService> notification_service_; |
| 125 | 123 |
| 126 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 124 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 127 | 125 |
| 128 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 126 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 129 }; | 127 }; |
| 130 | 128 |
| 131 #endif // CHROME_COMMON_CHILD_THREAD_H_ | 129 #endif // CHROME_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |