Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/common/child_process.h

Issue 113945: Headers cleanup in chrome/common (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include <string>
9 #include <vector>
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "base/message_loop.h"
12 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
13 #include "base/waitable_event.h" 10 #include "base/waitable_event.h"
14 11
15 class ChildThread; 12 class ChildThread;
16 13
17
18 // Base class for child processes of the browser process (i.e. renderer and 14 // Base class for child processes of the browser process (i.e. renderer and
19 // plugin host). This is a singleton object for each child process. 15 // plugin host). This is a singleton object for each child process.
20 class ChildProcess { 16 class ChildProcess {
21 public: 17 public:
22 // Child processes should have an object that derives from this class. The 18 // Child processes should have an object that derives from this class. The
23 // constructor will return once ChildThread has started. 19 // constructor will return once ChildThread has started.
24 ChildProcess(ChildThread* child_thread); 20 ChildProcess(ChildThread* child_thread);
25 virtual ~ChildProcess(); 21 virtual ~ChildProcess();
26 22
27 // Getter for this process' main thread. 23 // Getter for this process' main thread.
(...skipping 30 matching lines...) Expand all
58 // An event that will be signalled when we shutdown. 54 // An event that will be signalled when we shutdown.
59 base::WaitableEvent shutdown_event_; 55 base::WaitableEvent shutdown_event_;
60 56
61 // The singleton instance for this process. 57 // The singleton instance for this process.
62 static ChildProcess* child_process_; 58 static ChildProcess* child_process_;
63 59
64 DISALLOW_EVIL_CONSTRUCTORS(ChildProcess); 60 DISALLOW_EVIL_CONSTRUCTORS(ChildProcess);
65 }; 61 };
66 62
67 #endif // CHROME_COMMON_CHILD_PROCESS_H__ 63 #endif // CHROME_COMMON_CHILD_PROCESS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698