| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "content/common/content_export.h" |
| 11 |
| 12 namespace shell { |
| 13 class Connector; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // Sets up the Service Manager for the browser process. If the browser process |
| 19 // is launched from an external Service Manager, this configures that |
| 20 // connection. If it was not, this creates a Service Manager instance. |
| 21 class CONTENT_EXPORT ServiceManagerContext { |
| 22 public: |
| 23 virtual ~ServiceManagerContext() {} |
| 24 |
| 25 // Create an instance of the context, binding to the external Service Manager |
| 26 // that launched this process or creating one. Must be called on the main |
| 27 // thread. |
| 28 static std::unique_ptr<ServiceManagerContext> Create(); |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_PUBLIC_BROWSER_SERVICE_MANAGER_CONTEXT_H_ |
| OLD | NEW |