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. | |
Lei Zhang
2017/05/04 02:13:13
Mention this needs to run on the UI thread.
Wei Li
2017/05/04 18:18:28
Done.
| |
89 virtual void RegisterMojoServices() = 0; | |
Lei Zhang
2017/05/04 02:13:13
It's weird to have this method as is:
1) The impl
Wei Li
2017/05/04 18:18:28
As Ken said, once we can refactor those memory int
| |
90 | |
88 // Set the name of the process to appear in the task manager. | 91 // Set the name of the process to appear in the task manager. |
89 virtual void SetName(const base::string16& name) = 0; | 92 virtual void SetName(const base::string16& name) = 0; |
90 }; | 93 }; |
91 | 94 |
92 }; // namespace content | 95 }; // namespace content |
93 | 96 |
94 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ | 97 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |