OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_ H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_ H_ | |
7 | |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | |
9 | |
10 namespace copresence { | |
11 class WhispernetClient; | |
12 } | |
13 | |
14 namespace extensions { | |
15 | |
16 class CopresencePrivateSendFoundFunction : public ChromeSyncExtensionFunction { | |
not at google - send to devlin
2014/07/31 15:24:17
it's better to extend ChromeUIThreadExtension func
rkc
2014/07/31 23:12:53
Done.
| |
17 public: | |
18 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound", UNKNOWN); | |
not at google - send to devlin
2014/07/31 15:24:17
please add real UMA for this function.
rkc
2014/07/31 23:12:53
Any particular reason to? We have absolutely no in
not at google - send to devlin
2014/07/31 23:31:17
the argument that you want to get rid of this API
rkc
2014/08/01 19:20:00
Done.
| |
19 | |
20 protected: | |
21 virtual ~CopresencePrivateSendFoundFunction() {} | |
22 virtual bool RunSync() OVERRIDE; | |
23 }; | |
24 | |
25 class CopresencePrivateSendSamplesFunction | |
26 : public ChromeSyncExtensionFunction { | |
27 public: | |
28 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendSamples", UNKNOWN); | |
29 | |
30 protected: | |
31 virtual ~CopresencePrivateSendSamplesFunction() {} | |
32 virtual bool RunSync() OVERRIDE; | |
33 }; | |
34 | |
35 class CopresencePrivateSendDetectFunction : public ChromeSyncExtensionFunction { | |
36 public: | |
37 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendDetect", UNKNOWN); | |
38 | |
39 protected: | |
40 virtual ~CopresencePrivateSendDetectFunction() {} | |
41 virtual bool RunSync() OVERRIDE; | |
42 }; | |
43 | |
44 class CopresencePrivateSendInitializedFunction | |
45 : public ChromeSyncExtensionFunction { | |
46 public: | |
47 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized", UNKNOWN); | |
48 | |
49 protected: | |
50 virtual ~CopresencePrivateSendInitializedFunction() {} | |
51 virtual bool RunSync() OVERRIDE; | |
52 }; | |
53 | |
54 // This will go away once we check in the code for the CopresenceAPI BCK | |
55 // service which lets us inject a whispernet client. | |
56 void SetWhispernetClientForTesting(copresence::WhispernetClient* client); | |
57 | |
58 } // namespace extensions | |
59 | |
60 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_A PI_H_ | |
OLD | NEW |