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/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" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class FilePath; | 16 class FilePath; |
17 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
18 } | 18 } |
19 | 19 |
20 namespace shell { | 20 namespace shell { |
21 class InterfaceProvider; | 21 class InterfaceProvider; |
22 class InterfaceRegistry; | |
23 } | 22 } |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 class UtilityProcessHostClient; | 25 class UtilityProcessHostClient; |
27 struct ChildProcessData; | 26 struct ChildProcessData; |
28 | 27 |
29 // This class acts as the browser-side host to a utility child process. A | 28 // This class acts as the browser-side host to a utility child process. A |
30 // utility process is a short-lived process that is created to run a specific | 29 // utility process is a short-lived process that is created to run a specific |
31 // task. This class lives solely on the IO thread. | 30 // task. This class lives solely on the IO thread. |
32 // If you need a single method call in the process, use StartFooBar(p). | 31 // If you need a single method call in the process, use StartFooBar(p). |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // interfaces exposed to it from the utility process. | 86 // interfaces exposed to it from the utility process. |
88 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 87 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
89 | 88 |
90 // Set the name of the process to appear in the task manager. | 89 // Set the name of the process to appear in the task manager. |
91 virtual void SetName(const base::string16& name) = 0; | 90 virtual void SetName(const base::string16& name) = 0; |
92 }; | 91 }; |
93 | 92 |
94 }; // namespace content | 93 }; // namespace content |
95 | 94 |
96 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ | 95 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |