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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
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..1a4b2033ee5bf81133a975da35b02c614df27d87
--- /dev/null
+++ b/chrome/browser/extensions/api/copresence_private/copresence_private_api.h
@@ -0,0 +1,62 @@
+// 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 ChromeUIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendFound", UNKNOWN);
+
+ protected:
+ virtual ~CopresencePrivateSendFoundFunction() {}
+ virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
+};
+
+class CopresencePrivateSendSamplesFunction
+ : public ChromeUIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendSamples", UNKNOWN);
+
+ protected:
+ virtual ~CopresencePrivateSendSamplesFunction() {}
+ virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
+};
+
+class CopresencePrivateSendDetectFunction
+ : public ChromeUIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendDetect", UNKNOWN);
+
+ protected:
+ virtual ~CopresencePrivateSendDetectFunction() {}
+ virtual ExtensionFunction::ResponseAction Run() OVERRIDE;
+};
+
+class CopresencePrivateSendInitializedFunction
+ : public ChromeUIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("copresencePrivate.sendInitialized", UNKNOWN);
+
+ protected:
+ virtual ~CopresencePrivateSendInitializedFunction() {}
+ virtual ExtensionFunction::ResponseAction Run() 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_

Powered by Google App Engine
This is Rietveld 408576698