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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
8 #include "chrome/browser/extensions/chrome_extension_function.h"
10 namespace extensions
{
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
19 class ExtensionSetUpdateUrlDataFunction
: public ChromeSyncExtensionFunction
{
21 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData",
22 EXTENSION_SETUPDATEURLDATA
)
25 ~ExtensionSetUpdateUrlDataFunction() override
{}
28 bool RunSync() override
;
31 class ExtensionIsAllowedIncognitoAccessFunction
32 : public ChromeSyncExtensionFunction
{
34 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess",
35 EXTENSION_ISALLOWEDINCOGNITOACCESS
)
38 ~ExtensionIsAllowedIncognitoAccessFunction() override
{}
41 bool RunSync() override
;
44 class ExtensionIsAllowedFileSchemeAccessFunction
45 : public ChromeSyncExtensionFunction
{
47 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess",
48 EXTENSION_ISALLOWEDFILESCHEMEACCESS
)
51 ~ExtensionIsAllowedFileSchemeAccessFunction() override
{}
54 bool RunSync() override
;
57 } // namespace extensions
59 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_