| 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 "content/common/content_export.h" |
| 11 #include "content/common/message_router.h" | 12 #include "content/common/message_router.h" |
| 12 #include "webkit/glue/resource_loader_bridge.h" | 13 #include "webkit/glue/resource_loader_bridge.h" |
| 13 | 14 |
| 14 class FileSystemDispatcher; | 15 class FileSystemDispatcher; |
| 15 class MessageLoop; | 16 class MessageLoop; |
| 16 class NotificationService; | 17 class NotificationService; |
| 17 class QuotaDispatcher; | 18 class QuotaDispatcher; |
| 18 class ResourceDispatcher; | 19 class ResourceDispatcher; |
| 19 class SocketStreamDispatcher; | 20 class SocketStreamDispatcher; |
| 20 | 21 |
| 21 namespace IPC { | 22 namespace IPC { |
| 22 class SyncChannel; | 23 class SyncChannel; |
| 23 class SyncMessageFilter; | 24 class SyncMessageFilter; |
| 24 } | 25 } |
| 25 | 26 |
| 26 // The main thread of a child process derives from this class. | 27 // The main thread of a child process derives from this class. |
| 27 class ChildThread : public IPC::Channel::Listener, | 28 class CONTENT_EXPORT ChildThread : public IPC::Channel::Listener, |
| 28 public IPC::Message::Sender { | 29 public IPC::Message::Sender { |
| 29 public: | 30 public: |
| 30 // Creates the thread. | 31 // Creates the thread. |
| 31 ChildThread(); | 32 ChildThread(); |
| 32 // Used for single-process mode. | 33 // Used for single-process mode. |
| 33 explicit ChildThread(const std::string& channel_name); | 34 explicit ChildThread(const std::string& channel_name); |
| 34 virtual ~ChildThread(); | 35 virtual ~ChildThread(); |
| 35 | 36 |
| 36 // IPC::Message::Sender implementation: | 37 // IPC::Message::Sender implementation: |
| 37 virtual bool Send(IPC::Message* msg); | 38 virtual bool Send(IPC::Message* msg); |
| 38 | 39 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 scoped_ptr<NotificationService> notification_service_; | 127 scoped_ptr<NotificationService> notification_service_; |
| 127 | 128 |
| 128 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 129 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 129 | 130 |
| 130 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 131 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 133 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 136 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |