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

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
17 : public ChromeUIThreadExtensionFunction {
18 public:
19 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound", UNKNOWN);
20
21 protected:
22 virtual ~CopresencePrivateSendFoundFunction() {}
23 virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
24 };
25
26 class CopresencePrivateSendSamplesFunction
27 : public ChromeUIThreadExtensionFunction {
28 public:
29 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendSamples", UNKNOWN);
30
31 protected:
32 virtual ~CopresencePrivateSendSamplesFunction() {}
33 virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
34 };
35
36 class CopresencePrivateSendDetectFunction
37 : public ChromeUIThreadExtensionFunction {
38 public:
39 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendDetect", UNKNOWN);
40
41 protected:
42 virtual ~CopresencePrivateSendDetectFunction() {}
43 virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
44 };
45
46 class CopresencePrivateSendInitializedFunction
47 : public ChromeUIThreadExtensionFunction {
48 public:
49 DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized", UNKNOWN);
50
51 protected:
52 virtual ~CopresencePrivateSendInitializedFunction() {}
53 virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
54 };
55
56 // This will go away once we check in the code for the CopresenceAPI BCK
57 // service which lets us inject a whispernet client.
58 void SetWhispernetClientForTesting(copresence::WhispernetClient* client);
59
60 } // namespace extensions
61
62 #endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_A PI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698