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

Side by Side Diff: chrome/service/service_utility_process_host.h

Issue 9150017: Add a Content API around BrowserChildProcessHost, similar to what was done with ChildProcessHost.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix?! Created 8 years, 11 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
OLDNEW
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 CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 5 #ifndef CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // printer. Used on Windows to isolate the service process from printer driver 101 // printer. Used on Windows to isolate the service process from printer driver
102 // crashes by executing this in a separate process. The process does not run 102 // crashes by executing this in a separate process. The process does not run
103 // in a sandbox. 103 // in a sandbox.
104 bool StartGetPrinterCapsAndDefaults(const std::string& printer_name); 104 bool StartGetPrinterCapsAndDefaults(const std::string& printer_name);
105 105
106 protected: 106 protected:
107 // Allows this method to be overridden for tests. 107 // Allows this method to be overridden for tests.
108 virtual FilePath GetUtilityProcessCmd(); 108 virtual FilePath GetUtilityProcessCmd();
109 109
110 // ChildProcessHostDelegate implementation: 110 // ChildProcessHostDelegate implementation:
111 virtual bool CanShutdown() OVERRIDE;
112 virtual void OnChildDisconnected() OVERRIDE; 111 virtual void OnChildDisconnected() OVERRIDE;
113 virtual void ShutdownStarted() OVERRIDE;
114 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
115 113
116 private: 114 private:
117 // Starts a process. Returns true iff it succeeded. |exposed_dir| is the 115 // Starts a process. Returns true iff it succeeded. |exposed_dir| is the
118 // path to the exposed to the sandbox. This is ignored if |no_sandbox| is 116 // path to the exposed to the sandbox. This is ignored if |no_sandbox| is
119 // true. 117 // true.
120 bool StartProcess(bool no_sandbox, const FilePath& exposed_dir); 118 bool StartProcess(bool no_sandbox, const FilePath& exposed_dir);
121 119
122 // Launch the child process synchronously. 120 // Launch the child process synchronously.
123 // TODO(sanjeevr): Determine whether we need to make the launch asynchronous. 121 // TODO(sanjeevr): Determine whether we need to make the launch asynchronous.
(...skipping 21 matching lines...) Expand all
145 bool waiting_for_reply_; 143 bool waiting_for_reply_;
146 // The path to the temp file where the metafile will be written to. 144 // The path to the temp file where the metafile will be written to.
147 FilePath metafile_path_; 145 FilePath metafile_path_;
148 // The temporary folder created for the metafile. 146 // The temporary folder created for the metafile.
149 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; 147 scoped_ptr<ScopedTempDir> scratch_metafile_dir_;
150 148
151 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); 149 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
152 }; 150 };
153 151
154 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 152 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/web_resource_service.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698