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 |
| 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_ |
OLD | NEW |