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. 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 "extensions/browser/extension_function.h" 9 10 class Profile; 11 12 namespace extensions { 13 14 class WebcamPrivateSetFunction : public SyncExtensionFunction { 15 public: 16 WebcamPrivateSetFunction(); 17 DECLARE_EXTENSION_FUNCTION("webcamPrivate.set", WEBCAMPRIVATE_SET); 18 19 protected: 20 virtual ~WebcamPrivateSetFunction(); 21 virtual bool RunSync() OVERRIDE; 22 23 private: 24 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateSetFunction); 25 }; 26 27 class WebcamPrivateGetFunction : public SyncExtensionFunction { 28 public: 29 WebcamPrivateGetFunction(); 30 DECLARE_EXTENSION_FUNCTION("webcamPrivate.get", WEBCAMPRIVATE_GET); 31 32 protected: 33 virtual ~WebcamPrivateGetFunction(); 34 virtual bool RunSync() OVERRIDE; 35 36 private: 37 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateGetFunction); 38 }; 39 40 class WebcamPrivateResetFunction : public SyncExtensionFunction { 41 public: 42 WebcamPrivateResetFunction(); 43 DECLARE_EXTENSION_FUNCTION("webcamPrivate.reset", WEBCAMPRIVATE_RESET); 44 45 protected: 46 virtual ~WebcamPrivateResetFunction(); 47 virtual bool RunSync() OVERRIDE; 48 49 private: 50 DISALLOW_COPY_AND_ASSIGN(WebcamPrivateResetFunction); 51 }; 52 53 } // namespace extensions 54 55 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBCAM_PRIVATE_WEBCAM_PRIVATE_API_H_ 56