1 // Copyright 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.
5 #ifndef EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
6 #define EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_
8 #include "extensions/browser/extension_function.h"
12 namespace extensions
{
14 class WebcamPrivateSetFunction
: public SyncExtensionFunction
{
16 WebcamPrivateSetFunction();
17 DECLARE_EXTENSION_FUNCTION("webcamPrivate.set", WEBCAMPRIVATE_SET
);
20 ~WebcamPrivateSetFunction() override
;
21 bool RunSync() override
;
24 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateSetFunction
);
27 class WebcamPrivateGetFunction
: public SyncExtensionFunction
{
29 WebcamPrivateGetFunction();
30 DECLARE_EXTENSION_FUNCTION("webcamPrivate.get", WEBCAMPRIVATE_GET
);
33 ~WebcamPrivateGetFunction() override
;
34 bool RunSync() override
;
37 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateGetFunction
);
40 class WebcamPrivateResetFunction
: public SyncExtensionFunction
{
42 WebcamPrivateResetFunction();
43 DECLARE_EXTENSION_FUNCTION("webcamPrivate.reset", WEBCAMPRIVATE_RESET
);
46 ~WebcamPrivateResetFunction() override
;
47 bool RunSync() override
;
50 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction
);
53 } // namespace extensions
55 #endif // EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_