| OLD | NEW |
| 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/process/launch.h" | 9 #include "base/process/launch.h" |
| 9 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 class FilePath; | 15 class FilePath; |
| 15 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void DisableSandbox() = 0; | 62 virtual void DisableSandbox() = 0; |
| 62 | 63 |
| 63 // If the sandbox is being used and we are on Linux, launch the process from | 64 // If the sandbox is being used and we are on Linux, launch the process from |
| 64 // the zygote. Can only be used for tasks that do not require FS access. | 65 // the zygote. Can only be used for tasks that do not require FS access. |
| 65 virtual void EnableZygote() = 0; | 66 virtual void EnableZygote() = 0; |
| 66 | 67 |
| 67 // Returns information about the utility child process. | 68 // Returns information about the utility child process. |
| 68 virtual const ChildProcessData& GetData() = 0; | 69 virtual const ChildProcessData& GetData() = 0; |
| 69 | 70 |
| 70 #if defined(OS_POSIX) | 71 #if defined(OS_POSIX) |
| 71 virtual void SetEnv(const base::EnvironmentVector& env) = 0; | 72 virtual void SetEnv(const base::EnvironmentMap& env) = 0; |
| 72 #endif | 73 #endif |
| 73 | 74 |
| 74 CONTENT_EXPORT static void RegisterUtilityMainThreadFactory( | 75 CONTENT_EXPORT static void RegisterUtilityMainThreadFactory( |
| 75 UtilityMainThreadFactoryFunction create); | 76 UtilityMainThreadFactoryFunction create); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 }; // namespace content | 79 }; // namespace content |
| 79 | 80 |
| 80 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ | 81 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ |
| OLD | NEW |