Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/browser/extensions/api/copresence_private/copresence_private_api.h

Issue 438513002: Add the whispernet proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698