Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Side by Side Diff: chrome/browser/extensions/api/module/module.h

Issue 15051010: Move [Get|Set]UpdateURLData from ExtensionPrefs to ExtensionAPI (aka Module) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
7 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class ExtensionPrefs; 12 namespace extension {
13 // A preference for storing the extension's update URL data. If not empty, the
14 // the ExtensionUpdater will append a ap= parameter to the URL when checking if
15 // a new version of the extension is available.
16 extern const char kUpdateURLData[];
17 } // namespace extension
13 18
14 class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction { 19 class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction {
15 public: 20 public:
16 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData", 21 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData",
17 EXTENSION_SETUPDATEURLDATA) 22 EXTENSION_SETUPDATEURLDATA)
18 23
19 protected: 24 protected:
20 virtual ~ExtensionSetUpdateUrlDataFunction() {} 25 virtual ~ExtensionSetUpdateUrlDataFunction() {}
21 26
22 // ExtensionFunction: 27 // ExtensionFunction:
23 virtual bool RunImpl() OVERRIDE; 28 virtual bool RunImpl() OVERRIDE;
24
25 private:
26 ExtensionPrefs* extension_prefs();
27 }; 29 };
28 30
29 class ExtensionIsAllowedIncognitoAccessFunction : public SyncExtensionFunction { 31 class ExtensionIsAllowedIncognitoAccessFunction : public SyncExtensionFunction {
30 public: 32 public:
31 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess", 33 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess",
32 EXTENSION_ISALLOWEDINCOGNITOACCESS) 34 EXTENSION_ISALLOWEDINCOGNITOACCESS)
33 35
34 protected: 36 protected:
35 virtual ~ExtensionIsAllowedIncognitoAccessFunction() {} 37 virtual ~ExtensionIsAllowedIncognitoAccessFunction() {}
36 38
37 // ExtensionFunction: 39 // ExtensionFunction:
38 virtual bool RunImpl() OVERRIDE; 40 virtual bool RunImpl() OVERRIDE;
39 }; 41 };
40 42
41 class ExtensionIsAllowedFileSchemeAccessFunction 43 class ExtensionIsAllowedFileSchemeAccessFunction
42 : public SyncExtensionFunction { 44 : public SyncExtensionFunction {
43 public: 45 public:
44 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess", 46 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess",
45 EXTENSION_ISALLOWEDFILESCHEMEACCESS) 47 EXTENSION_ISALLOWEDFILESCHEMEACCESS)
46 48
47 protected: 49 protected:
48 virtual ~ExtensionIsAllowedFileSchemeAccessFunction() {} 50 virtual ~ExtensionIsAllowedFileSchemeAccessFunction() {}
49 51
50 // ExtensionFunction: 52 // ExtensionFunction:
51 virtual bool RunImpl() OVERRIDE; 53 virtual bool RunImpl() OVERRIDE;
52 }; 54 };
53 55
54 } // namespace extensions 56 } // namespace extensions
55 57
56 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__ 58 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/module/module.cc » ('j') | chrome/browser/extensions/updater/extension_updater.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698