blob: d4c2098eb4c18090b190b21b3b318643d2c9d643 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// Copyright 2014 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_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_H_
#include <string>
#include "extensions/browser/extension_function.h"
namespace audio_modem {
class WhispernetClient;
}
namespace extensions {
namespace copresence_private {
// Register a client to receive events from Whispernet.
const std::string
RegisterWhispernetClient(audio_modem::WhispernetClient* client);
} // namespace copresence_private
class CopresencePrivateSendFoundFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound",
COPRESENCEPRIVATE_SENDFOUND);
protected:
~CopresencePrivateSendFoundFunction() override {}
ExtensionFunction::ResponseAction Run() override;
};
class CopresencePrivateSendSamplesFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendSamples",
COPRESENCEPRIVATE_SENDSAMPLES);
protected:
~CopresencePrivateSendSamplesFunction() override {}
ExtensionFunction::ResponseAction Run() override;
};
class CopresencePrivateSendDetectFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendDetect",
COPRESENCEPRIVATE_SENDDETECT);
protected:
~CopresencePrivateSendDetectFunction() override {}
ExtensionFunction::ResponseAction Run() override;
};
class CopresencePrivateSendInitializedFunction
: public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized",
COPRESENCEPRIVATE_SENDINITIALIZED);
protected:
~CopresencePrivateSendInitializedFunction() override {}
ExtensionFunction::ResponseAction Run() override;
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_H_
|