Chromium Code Reviews| Index: chrome/browser/extensions/api/copresence_private/copresence_private_api.h |
| diff --git a/chrome/browser/extensions/api/copresence_private/copresence_private_api.h b/chrome/browser/extensions/api/copresence_private/copresence_private_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..36374fc8d220da55b2f30ddfbc5d01b775765815 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/copresence_private/copresence_private_api.h |
| @@ -0,0 +1,60 @@ |
| +// 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 "chrome/browser/extensions/chrome_extension_function.h" |
| + |
| +namespace copresence { |
| +class WhispernetClient; |
| +} |
| + |
| +namespace extensions { |
| + |
| +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.
|
| + public: |
| + 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.
|
| + |
| + protected: |
| + virtual ~CopresencePrivateSendFoundFunction() {} |
| + virtual bool RunSync() OVERRIDE; |
| +}; |
| + |
| +class CopresencePrivateSendSamplesFunction |
| + : public ChromeSyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendSamples", UNKNOWN); |
| + |
| + protected: |
| + virtual ~CopresencePrivateSendSamplesFunction() {} |
| + virtual bool RunSync() OVERRIDE; |
| +}; |
| + |
| +class CopresencePrivateSendDetectFunction : public ChromeSyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendDetect", UNKNOWN); |
| + |
| + protected: |
| + virtual ~CopresencePrivateSendDetectFunction() {} |
| + virtual bool RunSync() OVERRIDE; |
| +}; |
| + |
| +class CopresencePrivateSendInitializedFunction |
| + : public ChromeSyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized", UNKNOWN); |
| + |
| + protected: |
| + virtual ~CopresencePrivateSendInitializedFunction() {} |
| + virtual bool RunSync() OVERRIDE; |
| +}; |
| + |
| +// This will go away once we check in the code for the CopresenceAPI BCK |
| +// service which lets us inject a whispernet client. |
| +void SetWhispernetClientForTesting(copresence::WhispernetClient* client); |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_PRIVATE_COPRESENCE_PRIVATE_API_H_ |