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

Side by Side Diff: chrome/browser/extensions/extension_module.h

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 years, 5 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_EXTENSION_MODULE_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 namespace extensions {
11 class ExtensionPrefs; 12 class ExtensionPrefs;
13 }
12 14
13 class SetUpdateUrlDataFunction : public SyncExtensionFunction { 15 class SetUpdateUrlDataFunction : public SyncExtensionFunction {
14 public: 16 public:
15 DECLARE_EXTENSION_FUNCTION_NAME("extension.setUpdateUrlData"); 17 DECLARE_EXTENSION_FUNCTION_NAME("extension.setUpdateUrlData");
16 18
17 protected: 19 protected:
18 virtual ~SetUpdateUrlDataFunction() {} 20 virtual ~SetUpdateUrlDataFunction() {}
19 21
20 // ExtensionFunction: 22 // ExtensionFunction:
21 virtual bool RunImpl() OVERRIDE; 23 virtual bool RunImpl() OVERRIDE;
22 24
23 private: 25 private:
24 ExtensionPrefs* extension_prefs(); 26 extensions::ExtensionPrefs* extension_prefs();
25 }; 27 };
26 28
27 class IsAllowedIncognitoAccessFunction : public SyncExtensionFunction { 29 class IsAllowedIncognitoAccessFunction : public SyncExtensionFunction {
28 public: 30 public:
29 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedIncognitoAccess"); 31 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedIncognitoAccess");
30 32
31 protected: 33 protected:
32 virtual ~IsAllowedIncognitoAccessFunction() {} 34 virtual ~IsAllowedIncognitoAccessFunction() {}
33 35
34 // ExtensionFunction: 36 // ExtensionFunction:
35 virtual bool RunImpl() OVERRIDE; 37 virtual bool RunImpl() OVERRIDE;
36 }; 38 };
37 39
38 class IsAllowedFileSchemeAccessFunction : public SyncExtensionFunction { 40 class IsAllowedFileSchemeAccessFunction : public SyncExtensionFunction {
39 public: 41 public:
40 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedFileSchemeAccess"); 42 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedFileSchemeAccess");
41 43
42 protected: 44 protected:
43 virtual ~IsAllowedFileSchemeAccessFunction() {} 45 virtual ~IsAllowedFileSchemeAccessFunction() {}
44 46
45 // ExtensionFunction: 47 // ExtensionFunction:
46 virtual bool RunImpl() OVERRIDE; 48 virtual bool RunImpl() OVERRIDE;
47 }; 49 };
48 50
49 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__ 51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('k') | chrome/browser/extensions/extension_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698