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_PROCESS_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_H_ |
6 #define CONTENT_COMMON_CHILD_PROCESS_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
12 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
14 | 13 |
15 class ChildThread; | 14 class ChildThread; |
16 | 15 |
17 // 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 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // io_thread_. | 70 // io_thread_. |
72 scoped_ptr<ChildThread> main_thread_; | 71 scoped_ptr<ChildThread> main_thread_; |
73 | 72 |
74 // The singleton instance for this process. | 73 // The singleton instance for this process. |
75 static ChildProcess* child_process_; | 74 static ChildProcess* child_process_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(ChildProcess); | 76 DISALLOW_COPY_AND_ASSIGN(ChildProcess); |
78 }; | 77 }; |
79 | 78 |
80 #endif // CONTENT_COMMON_CHILD_PROCESS_H_ | 79 #endif // CONTENT_COMMON_CHILD_PROCESS_H_ |
OLD | NEW |