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