| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class QuotaMessageFilter; | 51 class QuotaMessageFilter; |
| 52 class ResourceDispatcher; | 52 class ResourceDispatcher; |
| 53 class SocketStreamDispatcher; | 53 class SocketStreamDispatcher; |
| 54 class ThreadSafeSender; | 54 class ThreadSafeSender; |
| 55 class WebSocketDispatcher; | 55 class WebSocketDispatcher; |
| 56 struct RequestInfo; | 56 struct RequestInfo; |
| 57 | 57 |
| 58 // The main thread of a child process derives from this class. | 58 // The main thread of a child process derives from this class. |
| 59 class CONTENT_EXPORT ChildThread : public IPC::Listener, | 59 class CONTENT_EXPORT ChildThread : public IPC::Listener, |
| 60 public IPC::Sender, | 60 public IPC::Sender, |
| 61 public mojo::ShellClient { | 61 public NON_EXPORTED_BASE(mojo::ShellClient) { |
| 62 public: | 62 public: |
| 63 // Creates the thread. | 63 // Creates the thread. |
| 64 ChildThread(); | 64 ChildThread(); |
| 65 // Used for single-process mode and for in process gpu mode. | 65 // Used for single-process mode and for in process gpu mode. |
| 66 explicit ChildThread(const std::string& channel_name); | 66 explicit ChildThread(const std::string& channel_name); |
| 67 // ChildProcess::main_thread() is reset after Shutdown(), and before the | 67 // ChildProcess::main_thread() is reset after Shutdown(), and before the |
| 68 // destructor, so any subsystem that relies on ChildProcess::main_thread() | 68 // destructor, so any subsystem that relies on ChildProcess::main_thread() |
| 69 // must be terminated before Shutdown returns. In particular, if a subsystem | 69 // must be terminated before Shutdown returns. In particular, if a subsystem |
| 70 // has a thread that post tasks to ChildProcess::main_thread(), that thread | 70 // has a thread that post tasks to ChildProcess::main_thread(), that thread |
| 71 // should be joined in Shutdown(). | 71 // should be joined in Shutdown(). |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 scoped_ptr<base::PowerMonitor> power_monitor_; | 253 scoped_ptr<base::PowerMonitor> power_monitor_; |
| 254 | 254 |
| 255 bool in_browser_process_; | 255 bool in_browser_process_; |
| 256 | 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 257 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 } // namespace content | 260 } // namespace content |
| 261 | 261 |
| 262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ | 262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ |
| OLD | NEW |