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

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

Issue 2327723002: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: fix Created 4 years, 3 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/chrome_extension_function.h" 8 #include "extensions/browser/extension_function.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 class ExtensionPrefs; 11 class ExtensionPrefs;
12 12
13 namespace extension { 13 namespace extension {
14 // Return the extension's update URL data, if any. 14 // Return the extension's update URL data, if any.
15 std::string GetUpdateURLData(const ExtensionPrefs* prefs, 15 std::string GetUpdateURLData(const ExtensionPrefs* prefs,
16 const std::string& extension_id); 16 const std::string& extension_id);
17 } // namespace extension 17 } // namespace extension
18 18
19 class ExtensionSetUpdateUrlDataFunction : public ChromeSyncExtensionFunction { 19 class ExtensionSetUpdateUrlDataFunction : public UIThreadExtensionFunction {
20 public: 20 public:
21 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData", 21 DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData",
22 EXTENSION_SETUPDATEURLDATA) 22 EXTENSION_SETUPDATEURLDATA)
23 23
24 protected: 24 protected:
25 ~ExtensionSetUpdateUrlDataFunction() override {} 25 ~ExtensionSetUpdateUrlDataFunction() override {}
26 26
27 // ExtensionFunction: 27 // ExtensionFunction:
28 bool RunSync() override; 28 ResponseAction Run() override;
29 }; 29 };
30 30
31 class ExtensionIsAllowedIncognitoAccessFunction 31 class ExtensionIsAllowedIncognitoAccessFunction
32 : public ChromeSyncExtensionFunction { 32 : public UIThreadExtensionFunction {
33 public: 33 public:
34 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess", 34 DECLARE_EXTENSION_FUNCTION("extension.isAllowedIncognitoAccess",
35 EXTENSION_ISALLOWEDINCOGNITOACCESS) 35 EXTENSION_ISALLOWEDINCOGNITOACCESS)
36 36
37 protected: 37 protected:
38 ~ExtensionIsAllowedIncognitoAccessFunction() override {} 38 ~ExtensionIsAllowedIncognitoAccessFunction() override {}
39 39
40 // ExtensionFunction: 40 // ExtensionFunction:
41 bool RunSync() override; 41 ResponseAction Run() override;
42 }; 42 };
43 43
44 class ExtensionIsAllowedFileSchemeAccessFunction 44 class ExtensionIsAllowedFileSchemeAccessFunction
45 : public ChromeSyncExtensionFunction { 45 : public UIThreadExtensionFunction {
46 public: 46 public:
47 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess", 47 DECLARE_EXTENSION_FUNCTION("extension.isAllowedFileSchemeAccess",
48 EXTENSION_ISALLOWEDFILESCHEMEACCESS) 48 EXTENSION_ISALLOWEDFILESCHEMEACCESS)
49 49
50 protected: 50 protected:
51 ~ExtensionIsAllowedFileSchemeAccessFunction() override {} 51 ~ExtensionIsAllowedFileSchemeAccessFunction() override {}
52 52
53 // ExtensionFunction: 53 // ExtensionFunction:
54 bool RunSync() override; 54 ResponseAction Run() override;
55 }; 55 };
56 56
57 } // namespace extensions 57 } // namespace extensions
58 58
59 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_ 59 #endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api.cc ('k') | chrome/browser/extensions/api/module/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698