OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 class ExtensionPrefs; | 11 class ExtensionPrefs; |
12 | 12 |
13 class SetUpdateUrlDataFunction : public SyncExtensionFunction { | 13 class SetUpdateUrlDataFunction : public SyncExtensionFunction { |
14 protected: | 14 protected: |
15 virtual bool RunImpl(); | 15 virtual bool RunImpl() OVERRIDE; |
16 DECLARE_EXTENSION_FUNCTION_NAME("extension.setUpdateUrlData"); | 16 DECLARE_EXTENSION_FUNCTION_NAME("extension.setUpdateUrlData"); |
17 | 17 |
18 private: | 18 private: |
19 ExtensionPrefs* extension_prefs(); | 19 ExtensionPrefs* extension_prefs(); |
20 }; | 20 }; |
21 | 21 |
22 class IsAllowedIncognitoAccessFunction : public SyncExtensionFunction { | 22 class IsAllowedIncognitoAccessFunction : public SyncExtensionFunction { |
23 protected: | 23 protected: |
24 virtual bool RunImpl(); | 24 virtual bool RunImpl() OVERRIDE; |
25 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedIncognitoAccess"); | 25 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedIncognitoAccess"); |
26 }; | 26 }; |
27 | 27 |
28 class IsAllowedFileSchemeAccessFunction : public SyncExtensionFunction { | 28 class IsAllowedFileSchemeAccessFunction : public SyncExtensionFunction { |
29 protected: | 29 protected: |
30 virtual bool RunImpl(); | 30 virtual bool RunImpl() OVERRIDE; |
31 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedFileSchemeAccess"); | 31 DECLARE_EXTENSION_FUNCTION_NAME("extension.isAllowedFileSchemeAccess"); |
32 }; | 32 }; |
33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__ | 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MODULE_H__ |
OLD | NEW |