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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/message_router.h" | 13 #include "content/common/message_router.h" |
14 #include "webkit/glue/resource_loader_bridge.h" | 14 #include "webkit/glue/resource_loader_bridge.h" |
15 | 15 |
16 class FileSystemDispatcher; | 16 class FileSystemDispatcher; |
17 class MessageLoop; | 17 class MessageLoop; |
18 class NotificationService; | |
19 class QuotaDispatcher; | 18 class QuotaDispatcher; |
20 class ResourceDispatcher; | 19 class ResourceDispatcher; |
21 class SocketStreamDispatcher; | 20 class SocketStreamDispatcher; |
22 | 21 |
23 namespace IPC { | 22 namespace IPC { |
24 class SyncChannel; | 23 class SyncChannel; |
25 class SyncMessageFilter; | 24 class SyncMessageFilter; |
26 } | 25 } |
27 | 26 |
28 // The main thread of a child process derives from this class. | 27 // The main thread of a child process derives from this class. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // conditions if the process refcount is 0 but there's an IPC message inflight | 125 // conditions if the process refcount is 0 but there's an IPC message inflight |
127 // that would addref it. | 126 // that would addref it. |
128 bool check_with_browser_before_shutdown_; | 127 bool check_with_browser_before_shutdown_; |
129 | 128 |
130 // The OnChannelError() callback was invoked - the channel is dead, don't | 129 // The OnChannelError() callback was invoked - the channel is dead, don't |
131 // attempt to communicate. | 130 // attempt to communicate. |
132 bool on_channel_error_called_; | 131 bool on_channel_error_called_; |
133 | 132 |
134 MessageLoop* message_loop_; | 133 MessageLoop* message_loop_; |
135 | 134 |
136 scoped_ptr<NotificationService> notification_service_; | |
137 | |
138 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 135 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
139 | 136 |
140 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 137 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
141 | 138 |
142 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 139 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
143 }; | 140 }; |
144 | 141 |
145 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 142 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
OLD | NEW |