Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 1 | // Copyright 2017 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 | |
Scott Violet | 47f00e5 | 2018-05-04 22:50:31 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_ |
| 6 | #define CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_ |
Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "content/public/browser/content_browser_client.h" |
| 11 | |
Scott Violet | 47f00e5 | 2018-05-04 22:50:31 | [diff] [blame] | 12 | namespace ash_service_registry { |
James Cook | ed46d84 | 2017-10-13 19:41:17 | [diff] [blame] | 13 | |
Scott Violet | 0eea3b2 | 2018-05-05 16:50:06 | [diff] [blame] | 14 | // Registers the set of Ash related services that run out of process. |
James Cook | ed46d84 | 2017-10-13 19:41:17 | [diff] [blame] | 15 | void RegisterOutOfProcessServices( |
Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 16 | content::ContentBrowserClient::OutOfProcessServiceMap* services); |
| 17 | |
Scott Violet | 0eea3b2 | 2018-05-05 16:50:06 | [diff] [blame] | 18 | // Registers the set of Ash related services that run in process. |
| 19 | void RegisterInProcessServices( |
Scott Violet | b7f4df2 | 2018-05-17 04:43:12 | [diff] [blame] | 20 | content::ContentBrowserClient::StaticServiceMap* services, |
| 21 | content::ServiceManagerConnection* connection); |
Scott Violet | 0eea3b2 | 2018-05-05 16:50:06 | [diff] [blame] | 22 | |
Scott Violet | 47f00e5 | 2018-05-04 22:50:31 | [diff] [blame] | 23 | // Returns true if |name| identifies an Ash related service. |
| 24 | bool IsAshRelatedServiceName(const std::string& name); |
Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 25 | |
James Cook | ed46d84 | 2017-10-13 19:41:17 | [diff] [blame] | 26 | // Returns true if the browser should exit when service |name| quits. |
| 27 | bool ShouldTerminateOnServiceQuit(const std::string& name); |
| 28 | |
Scott Violet | 47f00e5 | 2018-05-04 22:50:31 | [diff] [blame] | 29 | } // namespace ash_service_registry |
James Cook | ed46d84 | 2017-10-13 19:41:17 | [diff] [blame] | 30 | |
Scott Violet | 47f00e5 | 2018-05-04 22:50:31 | [diff] [blame] | 31 | #endif // CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_ |