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/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 "content/public/browser/browser_thread.h" | |
11 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
12 | 11 |
13 class FilePath; | 12 class FilePath; |
14 | 13 |
| 14 namespace base { |
| 15 class SequencedTaskRunner; |
| 16 } |
| 17 |
15 namespace content { | 18 namespace content { |
16 class UtilityProcessHostClient; | 19 class UtilityProcessHostClient; |
17 struct ChildProcessData; | 20 struct ChildProcessData; |
18 | 21 |
19 // This class acts as the browser-side host to a utility child process. A | 22 // This class acts as the browser-side host to a utility child process. A |
20 // utility process is a short-lived process that is created to run a specific | 23 // utility process is a short-lived process that is created to run a specific |
21 // task. This class lives solely on the IO thread. | 24 // task. This class lives solely on the IO thread. |
22 // If you need a single method call in the process, use StartFooBar(p). | 25 // If you need a single method call in the process, use StartFooBar(p). |
23 // If you need multiple batches of work to be done in the process, use | 26 // If you need multiple batches of work to be done in the process, use |
24 // StartBatchMode(), then multiple calls to StartFooBar(p), then finish with | 27 // StartBatchMode(), then multiple calls to StartFooBar(p), then finish with |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual const ChildProcessData& GetData() = 0; | 62 virtual const ChildProcessData& GetData() = 0; |
60 | 63 |
61 #if defined(OS_POSIX) | 64 #if defined(OS_POSIX) |
62 virtual void SetEnv(const base::EnvironmentVector& env) = 0; | 65 virtual void SetEnv(const base::EnvironmentVector& env) = 0; |
63 #endif | 66 #endif |
64 }; | 67 }; |
65 | 68 |
66 }; // namespace content | 69 }; // namespace content |
67 | 70 |
68 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ | 71 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |