1 // Copyright (c) 2012 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_MODULE_MODULE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_ 7 8 #include "chrome/browser/extensions/extension_function.h" 9 10 namespace extensions { 11 class ExtensionPrefs; 12 13 namespace extension { 14 // Return the extension's update URL data, if any. 15 std::string GetUpdateURLData(const ExtensionPrefs* prefs, 16 const std::string& extension_id); 17 } // namespace extension 18 19 class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction { 20 public: 21 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData", 22 EXTENSION_SETUPDATEURLDATA) 23 24 protected: 25 virtual ~ExtensionSetUpdateUrlDataFunction() {} 26 27 // ExtensionFunction: 28 virtual bool RunImpl() OVERRIDE; 29 }; 30 31 class ExtensionIsAllowedIncognitoAccessFunction : public SyncExtensionFunction { 32 public: 33 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess", 34 EXTENSION_ISALLOWEDINCOGNITOACCESS) 35 36 protected: 37 virtual ~ExtensionIsAllowedIncognitoAccessFunction() {} 38 39 // ExtensionFunction: 40 virtual bool RunImpl() OVERRIDE; 41 }; 42 43 class ExtensionIsAllowedFileSchemeAccessFunction 44 : public SyncExtensionFunction { 45 public: 46 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess", 47 EXTENSION_ISALLOWEDFILESCHEMEACCESS) 48 49 protected: 50 virtual ~ExtensionIsAllowedFileSchemeAccessFunction() {} 51 52 // ExtensionFunction: 53 virtual bool RunImpl() OVERRIDE; 54 }; 55 56 } // namespace extensions 57 58 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_ 59