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

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

Issue 19737002: Enable sandbox in local discovery utility process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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/process_util.h" 8 #include "base/process_util.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // to finish the utility process. 43 // to finish the utility process.
44 virtual bool StartBatchMode() = 0; 44 virtual bool StartBatchMode() = 0;
45 45
46 // Ends the utility process. Must be called after StartBatchMode(). 46 // Ends the utility process. Must be called after StartBatchMode().
47 virtual void EndBatchMode() = 0; 47 virtual void EndBatchMode() = 0;
48 48
49 // Allows a directory to be opened through the sandbox, in case it's needed by 49 // Allows a directory to be opened through the sandbox, in case it's needed by
50 // the operation. 50 // the operation.
51 virtual void SetExposedDir(const base::FilePath& dir) = 0; 51 virtual void SetExposedDir(const base::FilePath& dir) = 0;
52 52
53 // Allows a mdns to use network in sandbox.
54 virtual void EnableMDns() = 0;
55
53 // Make the process run without a sandbox. 56 // Make the process run without a sandbox.
54 virtual void DisableSandbox() = 0; 57 virtual void DisableSandbox() = 0;
55 58
56 // If the sandbox is being used and we are on Linux, launch the process from 59 // If the sandbox is being used and we are on Linux, launch the process from
57 // the zygote. Can only be used for tasks that do not require FS access. 60 // the zygote. Can only be used for tasks that do not require FS access.
58 virtual void EnableZygote() = 0; 61 virtual void EnableZygote() = 0;
59 62
60 // Returns information about the utility child process. 63 // Returns information about the utility child process.
61 virtual const ChildProcessData& GetData() = 0; 64 virtual const ChildProcessData& GetData() = 0;
62 65
63 #if defined(OS_POSIX) 66 #if defined(OS_POSIX)
64 virtual void SetEnv(const base::EnvironmentVector& env) = 0; 67 virtual void SetEnv(const base::EnvironmentVector& env) = 0;
65 #endif 68 #endif
66 }; 69 };
67 70
68 }; // namespace content 71 }; // namespace content
69 72
70 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ 73 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698