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

Unified Diff: chrome/browser/extensions/api/webcam_private/webcam_private_api.h

Issue 205243005: Add chrome.webcamPrivate idl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webcam_private/webcam_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webcam_private/webcam_private_api.h
diff --git a/chrome/browser/extensions/api/webcam_private/webcam_private_api.h b/chrome/browser/extensions/api/webcam_private/webcam_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..f73ae5bf15d8b2488d43d292128974d94f05a61d
--- /dev/null
+++ b/chrome/browser/extensions/api/webcam_private/webcam_private_api.h
@@ -0,0 +1,55 @@
+// Copyright (c) 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_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
+
+#include "extensions/browser/extension_function.h"
+
+class Profile;
+
+namespace extensions {
+
+class WebcamPrivateSetFunction : public SyncExtensionFunction {
+ public:
+ WebcamPrivateSetFunction();
+ DECLARE_EXTENSION_FUNCTION("webcamPrivate.set", WEBCAMPRIVATE_SET);
+
+ protected:
+ virtual ~WebcamPrivateSetFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebcamPrivateSetFunction);
+};
+
+class WebcamPrivateGetFunction : public SyncExtensionFunction {
+ public:
+ WebcamPrivateGetFunction();
+ DECLARE_EXTENSION_FUNCTION("webcamPrivate.get", WEBCAMPRIVATE_GET);
+
+ protected:
+ virtual ~WebcamPrivateGetFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebcamPrivateGetFunction);
+};
+
+class WebcamPrivateResetFunction : public SyncExtensionFunction {
+ public:
+ WebcamPrivateResetFunction();
+ DECLARE_EXTENSION_FUNCTION("webcamPrivate.reset", WEBCAMPRIVATE_RESET);
+
+ protected:
+ virtual ~WebcamPrivateResetFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webcam_private/webcam_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698