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

Unified Diff: extensions/browser/api/media_perception_private/media_perception_private_api.h

Issue 2860203002: MediaPerceptionPrivate IDL and skeleton. (Closed)
Patch Set: crbug for API whitelist. Created 3 years, 7 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: extensions/browser/api/media_perception_private/media_perception_private_api.h
diff --git a/extensions/browser/api/media_perception_private/media_perception_private_api.h b/extensions/browser/api/media_perception_private/media_perception_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..248fb6d10c26135192df79f858a166275b872532
--- /dev/null
+++ b/extensions/browser/api/media_perception_private/media_perception_private_api.h
@@ -0,0 +1,65 @@
+// Copyright 2017 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 EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIVATE_API_H_
+#define EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIVATE_API_H_
+
+#include "extensions/browser/extension_function.h"
+#include "extensions/common/api/media_perception_private.h"
+
+namespace media_perception = extensions::api::media_perception_private;
+
+namespace extensions {
+
+class MediaPerceptionPrivateGetStateFunction
+ : public UIThreadExtensionFunction {
+ public:
+ MediaPerceptionPrivateGetStateFunction();
+ DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.getState",
+ MEDIAPERCEPTIONPRIVATE_GETSTATE);
+
+ private:
+ ~MediaPerceptionPrivateGetStateFunction() override;
+
+ // ExtensionFunction:
+ ResponseAction Run() override;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateGetStateFunction);
+};
+
+class MediaPerceptionPrivateSetStateFunction
+ : public UIThreadExtensionFunction {
+ public:
+ MediaPerceptionPrivateSetStateFunction();
+ DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.setState",
+ MEDIAPERCEPTIONPRIVATE_SETSTATE);
+
+ private:
+ ~MediaPerceptionPrivateSetStateFunction() override;
+
+ // ExtensionFunction:
+ ResponseAction Run() override;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateSetStateFunction);
+};
+
+class MediaPerceptionPrivateGetDiagnosticsFunction
+ : public UIThreadExtensionFunction {
+ public:
+ MediaPerceptionPrivateGetDiagnosticsFunction();
+ DECLARE_EXTENSION_FUNCTION("mediaPerceptionPrivate.getDiagnostics",
+ MEDIAPERCEPTIONPRIVATE_GETDIAGNOSTICS);
+
+ private:
+ ~MediaPerceptionPrivateGetDiagnosticsFunction() override;
+
+ // ExtensionFunction:
+ ResponseAction Run() override;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaPerceptionPrivateGetDiagnosticsFunction);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_MEDIA_PERCEPTION_PRIVATE_MEDIA_PERCEPTION_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698