| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHILD_CHILD_THREAD_H_ | 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_ |
| 6 #define CONTENT_CHILD_CHILD_THREAD_H_ | 6 #define CONTENT_CHILD_CHILD_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace WebKit { | 27 namespace WebKit { |
| 28 class WebFrame; | 28 class WebFrame; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 class ChildHistogramMessageFilter; | 32 class ChildHistogramMessageFilter; |
| 33 class ChildResourceMessageFilter; | 33 class ChildResourceMessageFilter; |
| 34 class FileSystemDispatcher; | 34 class FileSystemDispatcher; |
| 35 class QuotaDispatcher; | 35 class QuotaDispatcher; |
| 36 class QuotaMessageFilter; |
| 36 class ResourceDispatcher; | 37 class ResourceDispatcher; |
| 37 class SocketStreamDispatcher; | 38 class SocketStreamDispatcher; |
| 38 class ThreadSafeSender; | 39 class ThreadSafeSender; |
| 39 | 40 |
| 40 // The main thread of a child process derives from this class. | 41 // The main thread of a child process derives from this class. |
| 41 class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender { | 42 class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender { |
| 42 public: | 43 public: |
| 43 // Creates the thread. | 44 // Creates the thread. |
| 44 ChildThread(); | 45 ChildThread(); |
| 45 // Used for single-process mode. | 46 // Used for single-process mode. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 base::MessageLoop* message_loop_; | 178 base::MessageLoop* message_loop_; |
| 178 | 179 |
| 179 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 180 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 180 | 181 |
| 181 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 182 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 182 | 183 |
| 183 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; | 184 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; |
| 184 | 185 |
| 185 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; | 186 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; |
| 186 | 187 |
| 188 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 189 |
| 187 base::WeakPtrFactory<ChildThread> channel_connected_factory_; | 190 base::WeakPtrFactory<ChildThread> channel_connected_factory_; |
| 188 | 191 |
| 189 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 192 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 190 }; | 193 }; |
| 191 | 194 |
| 192 } // namespace content | 195 } // namespace content |
| 193 | 196 |
| 194 #endif // CONTENT_CHILD_CHILD_THREAD_H_ | 197 #endif // CONTENT_CHILD_CHILD_THREAD_H_ |
| OLD | NEW |