mash_service_registry.h 858 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_MASH_SERVICE_REGISTRY_H_
#define CHROME_BROWSER_MASH_SERVICE_REGISTRY_H_

#include <string>

#include "content/public/browser/content_browser_client.h"

12 13
namespace mash_service_registry {

14
// Starts one of Mash's embedded services.
15
void RegisterOutOfProcessServices(
16 17 18 19 20
    content::ContentBrowserClient::OutOfProcessServiceMap* services);

// Returns true if |name| identifies a mash related service.
bool IsMashServiceName(const std::string& name);

21 22 23 24 25
// Returns true if the browser should exit when service |name| quits.
bool ShouldTerminateOnServiceQuit(const std::string& name);

}  // namespace mash_service_registry

26
#endif  // CHROME_BROWSER_MASH_SERVICE_REGISTRY_H_