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

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

Issue 55133005: Remove EnableZygote API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused |use_linux_zygote_| member variable. Created 7 years, 1 month 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 | « content/browser/utility_process_host_impl.cc ('k') | no next file » | 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) 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_UTILITY_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
7 7
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/process/launch.h" 9 #include "base/process/launch.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // to finish the utility process. 48 // to finish the utility process.
49 virtual bool StartBatchMode() = 0; 49 virtual bool StartBatchMode() = 0;
50 50
51 // Ends the utility process. Must be called after StartBatchMode(). 51 // Ends the utility process. Must be called after StartBatchMode().
52 virtual void EndBatchMode() = 0; 52 virtual void EndBatchMode() = 0;
53 53
54 // Allows a directory to be opened through the sandbox, in case it's needed by 54 // Allows a directory to be opened through the sandbox, in case it's needed by
55 // the operation. 55 // the operation.
56 virtual void SetExposedDir(const base::FilePath& dir) = 0; 56 virtual void SetExposedDir(const base::FilePath& dir) = 0;
57 57
58 // Allows a mdns to use network in sandbox. 58 // Perform presandbox initialization for mDNS.
59 virtual void EnableMDns() = 0; 59 virtual void EnableMDns() = 0;
60 60
61 // Make the process run without a sandbox. 61 // Make the process run without a sandbox.
62 virtual void DisableSandbox() = 0; 62 virtual void DisableSandbox() = 0;
63 63
64 // If the sandbox is being used and we are on Linux, launch the process from
65 // the zygote. Can only be used for tasks that do not require FS access.
66 virtual void EnableZygote() = 0;
67
68 // Returns information about the utility child process. 64 // Returns information about the utility child process.
69 virtual const ChildProcessData& GetData() = 0; 65 virtual const ChildProcessData& GetData() = 0;
70 66
71 #if defined(OS_POSIX) 67 #if defined(OS_POSIX)
72 virtual void SetEnv(const base::EnvironmentMap& env) = 0; 68 virtual void SetEnv(const base::EnvironmentMap& env) = 0;
73 #endif 69 #endif
74 70
75 CONTENT_EXPORT static void RegisterUtilityMainThreadFactory( 71 CONTENT_EXPORT static void RegisterUtilityMainThreadFactory(
76 UtilityMainThreadFactoryFunction create); 72 UtilityMainThreadFactoryFunction create);
77 }; 73 };
78 74
79 }; // namespace content 75 }; // namespace content
80 76
81 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 77 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698