blob: bdc0a19f874227907dd81b9666e4e736684b1965 [file] [log] [blame]
Scott Violet776edf82017-09-29 02:03:011// 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 Violet47f00e52018-05-04 22:50:315#ifndef CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_
6#define CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_
Scott Violet776edf82017-09-29 02:03:017
8#include <string>
9
10#include "content/public/browser/content_browser_client.h"
11
Scott Violet47f00e52018-05-04 22:50:3112namespace ash_service_registry {
James Cooked46d842017-10-13 19:41:1713
Scott Violet0eea3b22018-05-05 16:50:0614// Registers the set of Ash related services that run out of process.
James Cooked46d842017-10-13 19:41:1715void RegisterOutOfProcessServices(
Scott Violet776edf82017-09-29 02:03:0116 content::ContentBrowserClient::OutOfProcessServiceMap* services);
17
Scott Violet0eea3b22018-05-05 16:50:0618// Registers the set of Ash related services that run in process.
19void RegisterInProcessServices(
Scott Violetb7f4df22018-05-17 04:43:1220 content::ContentBrowserClient::StaticServiceMap* services,
21 content::ServiceManagerConnection* connection);
Scott Violet0eea3b22018-05-05 16:50:0622
Scott Violet47f00e52018-05-04 22:50:3123// Returns true if |name| identifies an Ash related service.
24bool IsAshRelatedServiceName(const std::string& name);
Scott Violet776edf82017-09-29 02:03:0125
James Cooked46d842017-10-13 19:41:1726// Returns true if the browser should exit when service |name| quits.
27bool ShouldTerminateOnServiceQuit(const std::string& name);
28
Scott Violet47f00e52018-05-04 22:50:3129} // namespace ash_service_registry
James Cooked46d842017-10-13 19:41:1730
Scott Violet47f00e52018-05-04 22:50:3131#endif // CHROME_BROWSER_ASH_SERVICE_REGISTRY_H_