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

Side by Side 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: WIP 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "base/values.h"
13 #include "components/keyed_service/core/keyed_service.h"
14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h"
16 #include "extensions/browser/browser_context_keyed_api_factory.h"
17 #include "extensions/browser/extension_function.h"
18 #include "extensions/common/extension.h"
19
20 class Profile;
21
22 namespace extensions {
23
24 class WebcamPrivateSetFunction : public SyncExtensionFunction {
25 public:
26 WebcamPrivateSetFunction();
27 DECLARE_EXTENSION_FUNCTION("webcamPrivate.set", WEBCAMPRIVATE_SET);
28
29 protected:
30 virtual ~WebcamPrivateSetFunction();
31 virtual bool RunImpl() OVERRIDE;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateSetFunction);
35 };
36
37 class WebcamPrivateGetFunction : public SyncExtensionFunction {
38 public:
39 WebcamPrivateGetFunction();
40 DECLARE_EXTENSION_FUNCTION("webcamPrivate.get", WEBCAMPRIVATE_GET);
41
42 protected:
43 virtual ~WebcamPrivateGetFunction();
44 virtual bool RunImpl() OVERRIDE;
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateGetFunction);
48 };
49
50 class WebcamPrivateResetFunction : public SyncExtensionFunction {
51 public:
52 WebcamPrivateResetFunction();
53 DECLARE_EXTENSION_FUNCTION("webcamPrivate.reset", WEBCAMPRIVATE_RESET);
54
55 protected:
56 virtual ~WebcamPrivateResetFunction();
57 virtual bool RunImpl() OVERRIDE;
58
59 private:
60 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction);
61 };
62
63 } // namespace extensions
64
65 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698