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

Side by Side Diff: content/public/browser/browser_child_process_host.h

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)
Patch Set: Created 4 years 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) 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_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
7 7
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Sets the user-visible name of the process. 85 // Sets the user-visible name of the process.
86 virtual void SetName(const base::string16& name) = 0; 86 virtual void SetName(const base::string16& name) = 0;
87 87
88 // Set the handle of the process. BrowserChildProcessHost will do this when 88 // Set the handle of the process. BrowserChildProcessHost will do this when
89 // the Launch method is used to start the process. However if the owner 89 // the Launch method is used to start the process. However if the owner
90 // of this object doesn't call Launch and starts the process in another way, 90 // of this object doesn't call Launch and starts the process in another way,
91 // they need to call this method so that the process handle is associated with 91 // they need to call this method so that the process handle is associated with
92 // this object. 92 // this object.
93 virtual void SetHandle(base::ProcessHandle handle) = 0; 93 virtual void SetHandle(base::ProcessHandle handle) = 0;
94 94
95 // Returns the child message pipe token for the service request.
96 virtual std::string GetServiceRequestChannelToken() = 0;
97
95 #if defined(OS_MACOSX) 98 #if defined(OS_MACOSX)
96 // Returns a PortProvider used to get the task port for child processes. 99 // Returns a PortProvider used to get the task port for child processes.
97 static base::PortProvider* GetPortProvider(); 100 static base::PortProvider* GetPortProvider();
98 #endif 101 #endif
99 }; 102 };
100 103
101 }; // namespace content 104 }; // namespace content
102 105
103 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_ 106 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CHILD_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698