OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_CHILD_PROCESS_H__ | 5 #ifndef CHROME_COMMON_CHILD_PROCESS_H__ |
6 #define CHROME_COMMON_CHILD_PROCESS_H__ | 6 #define CHROME_COMMON_CHILD_PROCESS_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" |
11 #include "base/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "base/waitable_event.h" | 12 #include "base/waitable_event.h" |
13 | 13 |
14 class ChildThread; | 14 class ChildThread; |
15 | 15 |
16 // Base class for child processes of the browser process (i.e. renderer and | 16 // Base class for child processes of the browser process (i.e. renderer and |
17 // plugin host). This is a singleton object for each child process. | 17 // plugin host). This is a singleton object for each child process. |
18 class ChildProcess { | 18 class ChildProcess { |
19 public: | 19 public: |
20 // Child processes should have an object that derives from this class. | 20 // Child processes should have an object that derives from this class. |
21 ChildProcess(); | 21 ChildProcess(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // io_thread_. | 63 // io_thread_. |
64 scoped_ptr<ChildThread> main_thread_; | 64 scoped_ptr<ChildThread> main_thread_; |
65 | 65 |
66 // The singleton instance for this process. | 66 // The singleton instance for this process. |
67 static ChildProcess* child_process_; | 67 static ChildProcess* child_process_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(ChildProcess); | 69 DISALLOW_COPY_AND_ASSIGN(ChildProcess); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_COMMON_CHILD_PROCESS_H__ | 72 #endif // CHROME_COMMON_CHILD_PROCESS_H__ |
OLD | NEW |