Home | History | Annotate | Download | only in module
      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/chrome_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 ChromeSyncExtensionFunction {
     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
     32     : public ChromeSyncExtensionFunction {
     33  public:
     34   DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess",
     35                              EXTENSION_ISALLOWEDINCOGNITOACCESS)
     36 
     37  protected:
     38   virtual ~ExtensionIsAllowedIncognitoAccessFunction() {}
     39 
     40   // ExtensionFunction:
     41   virtual bool RunImpl() OVERRIDE;
     42 };
     43 
     44 class ExtensionIsAllowedFileSchemeAccessFunction
     45     : public ChromeSyncExtensionFunction {
     46  public:
     47   DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess",
     48                              EXTENSION_ISALLOWEDFILESCHEMEACCESS)
     49 
     50  protected:
     51   virtual ~ExtensionIsAllowedFileSchemeAccessFunction() {}
     52 
     53   // ExtensionFunction:
     54   virtual bool RunImpl() OVERRIDE;
     55 };
     56 
     57 }  // namespace extensions
     58 
     59 #endif  // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
     60