summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util.h
blob: 37ea33ccdc0522cc53ce98fee62de4a58e1f49f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2010 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_COMMON_SERVICE_PROCESS_UTIL_H_
#define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_

#include <string>

#include "chrome/common/service_process_type.h"

class Profile;

// Return the IPC channel to connect to the service process.
//
// TODO(hclam): Need more information to come up with the channel name.
std::string GetServiceProcessChannelName();

// The following methods are used as a mechanism to signal a service process
// is running properly and all initialized.
//
// Signal that the service process is running.
// This method is called when the service process is running and initialized.
void SignalServiceProcessRunning(ServiceProcessType type);

// Signal that the service process is stopped.
void SignalServiceProcessStopped(ServiceProcessType type);

// This method checks that if the service process is running.
bool CheckServiceProcessRunning(ServiceProcessType type);

#endif  // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_