Add more checks to investigate SupervisedUserPrefStore crash at startup.
[chromium-blink-merge.git] / extensions / browser / api / webcam_private / webcam_private_api.h
blobc4cef378e7ddbcecdd9d31db05837953cbd80b57
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"
10 class Profile;
12 namespace extensions {
14 class WebcamPrivateSetFunction : public SyncExtensionFunction {
15 public:
16 WebcamPrivateSetFunction();
17 DECLARE_EXTENSION_FUNCTION("webcamPrivate.set", WEBCAMPRIVATE_SET);
19 protected:
20 ~WebcamPrivateSetFunction() override;
21 bool RunSync() override;
23 private:
24 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateSetFunction);
27 class WebcamPrivateGetFunction : public SyncExtensionFunction {
28 public:
29 WebcamPrivateGetFunction();
30 DECLARE_EXTENSION_FUNCTION("webcamPrivate.get", WEBCAMPRIVATE_GET);
32 protected:
33 ~WebcamPrivateGetFunction() override;
34 bool RunSync() override;
36 private:
37 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateGetFunction);
40 class WebcamPrivateResetFunction : public SyncExtensionFunction {
41 public:
42 WebcamPrivateResetFunction();
43 DECLARE_EXTENSION_FUNCTION("webcamPrivate.reset", WEBCAMPRIVATE_RESET);
45 protected:
46 ~WebcamPrivateResetFunction() override;
47 bool RunSync() override;
49 private:
50 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction);
53 } // namespace extensions
55 #endif // EXTENSIONS_BROWSER_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_