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

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

Issue 164298: Back out r22981, it may have caused Windows test failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/child_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_HOST_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_HOST_H_
6 #define CHROME_COMMON_CHILD_PROCESS_HOST_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
14 #include "ipc/ipc_channel.h" 14 #include "ipc/ipc_channel.h"
15 15
16 class NotificationType; 16 class NotificationType;
17 17
18 // Plugins/workers and other child processes that live on the IO thread should 18 // Plugins/workers and other child processes that live on the IO thread should
19 // derive from this class. 19 // derive from this class.
20 class ChildProcessHost : public ResourceDispatcherHost::Receiver, 20 class ChildProcessHost : public ResourceDispatcherHost::Receiver,
21 public IPC::Channel::Listener { 21 public IPC::Channel::Listener {
22 public: 22 public:
23 virtual ~ChildProcessHost(); 23 virtual ~ChildProcessHost();
24 24
25 // Returns the pathname to be used for a child process. If a subprocess
26 // pathname was specified on the command line, that will be used. Otherwise,
27 // the default child process pathname will be returned. On most platforms,
28 // this will be the same as the currently-executing process. On failure,
29 // returns an empty wstring.
30 static std::wstring GetChildPath();
31
32 // ResourceDispatcherHost::Receiver implementation: 25 // ResourceDispatcherHost::Receiver implementation:
33 virtual bool Send(IPC::Message* msg); 26 virtual bool Send(IPC::Message* msg);
34 27
35 // The Iterator class allows iteration through either all child processes, or 28 // The Iterator class allows iteration through either all child processes, or
36 // ones of a specific type, depending on which constructor is used. Note that 29 // ones of a specific type, depending on which constructor is used. Note that
37 // this should be done from the IO thread and that the iterator should not be 30 // this should be done from the IO thread and that the iterator should not be
38 // kept around as it may be invalidated on subsequent event processing in the 31 // kept around as it may be invalidated on subsequent event processing in the
39 // event loop. 32 // event loop.
40 class Iterator { 33 class Iterator {
41 public: 34 public:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool opening_channel_; 100 bool opening_channel_;
108 101
109 // The IPC::Channel. 102 // The IPC::Channel.
110 scoped_ptr<IPC::Channel> channel_; 103 scoped_ptr<IPC::Channel> channel_;
111 104
112 // IPC Channel's id. 105 // IPC Channel's id.
113 std::string channel_id_; 106 std::string channel_id_;
114 }; 107 };
115 108
116 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ 109 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698