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" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void SetEnv(const base::EnvironmentMap& env) = 0; | 78 virtual void SetEnv(const base::EnvironmentMap& env) = 0; |
79 #endif | 79 #endif |
80 | 80 |
81 // Starts the utility process. | 81 // Starts the utility process. |
82 virtual bool Start() = 0; | 82 virtual bool Start() = 0; |
83 | 83 |
84 // Bind an interface exposed by the utility process. | 84 // Bind an interface exposed by the utility process. |
85 virtual void BindInterface(const std::string& interface_name, | 85 virtual void BindInterface(const std::string& interface_name, |
86 mojo::ScopedMessagePipeHandle interface_pipe) = 0; | 86 mojo::ScopedMessagePipeHandle interface_pipe) = 0; |
87 | 87 |
| 88 // Register mojo services that the utility process can use. |
| 89 // This runs on UI thread. |
| 90 virtual void RegisterMojoServices() = 0; |
| 91 |
88 // Set the name of the process to appear in the task manager. | 92 // Set the name of the process to appear in the task manager. |
89 virtual void SetName(const base::string16& name) = 0; | 93 virtual void SetName(const base::string16& name) = 0; |
90 }; | 94 }; |
91 | 95 |
92 }; // namespace content | 96 }; // namespace content |
93 | 97 |
94 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ | 98 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |