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

Side by Side Diff: chrome/browser/extensions/api/management/chrome_management_api_delegate.h

Issue 2740853002: Use PreloadCheckGroup in ExtensionInstallChecker. Make RequirementsChecker a PreloadCheck. (Closed)
Patch Set: Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_
7 7
8 #include "base/task/cancelable_task_tracker.h" 8 #include "base/task/cancelable_task_tracker.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 10 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
(...skipping 13 matching lines...) Expand all
24 const extensions::ExtensionPrefs* prefs, 24 const extensions::ExtensionPrefs* prefs,
25 const extensions::Extension* extension) const override; 25 const extensions::Extension* extension) const override;
26 void GetPermissionWarningsByManifestFunctionDelegate( 26 void GetPermissionWarningsByManifestFunctionDelegate(
27 extensions::ManagementGetPermissionWarningsByManifestFunction* function, 27 extensions::ManagementGetPermissionWarningsByManifestFunction* function,
28 const std::string& manifest_str) const override; 28 const std::string& manifest_str) const override;
29 std::unique_ptr<extensions::InstallPromptDelegate> SetEnabledFunctionDelegate( 29 std::unique_ptr<extensions::InstallPromptDelegate> SetEnabledFunctionDelegate(
30 content::WebContents* web_contents, 30 content::WebContents* web_contents,
31 content::BrowserContext* browser_context, 31 content::BrowserContext* browser_context,
32 const extensions::Extension* extension, 32 const extensions::Extension* extension,
33 const base::Callback<void(bool)>& callback) const override; 33 const base::Callback<void(bool)>& callback) const override;
34 std::unique_ptr<extensions::RequirementsChecker> CreateRequirementsChecker()
35 const override;
36 std::unique_ptr<extensions::UninstallDialogDelegate> 34 std::unique_ptr<extensions::UninstallDialogDelegate>
37 UninstallFunctionDelegate( 35 UninstallFunctionDelegate(
38 extensions::ManagementUninstallFunctionBase* function, 36 extensions::ManagementUninstallFunctionBase* function,
39 const extensions::Extension* target_extension, 37 const extensions::Extension* target_extension,
40 bool show_programmatic_uninstall_ui) const override; 38 bool show_programmatic_uninstall_ui) const override;
41 bool CreateAppShortcutFunctionDelegate( 39 bool CreateAppShortcutFunctionDelegate(
42 extensions::ManagementCreateAppShortcutFunction* function, 40 extensions::ManagementCreateAppShortcutFunction* function,
43 const extensions::Extension* extension, 41 const extensions::Extension* extension,
44 std::string* error) const override; 42 std::string* error) const override;
45 std::unique_ptr<extensions::AppForLinkDelegate> 43 std::unique_ptr<extensions::AppForLinkDelegate>
(...skipping 18 matching lines...) Expand all
64 void SetLaunchType(content::BrowserContext* context, 62 void SetLaunchType(content::BrowserContext* context,
65 const std::string& extension_id, 63 const std::string& extension_id,
66 extensions::LaunchType launch_type) const override; 64 extensions::LaunchType launch_type) const override;
67 GURL GetIconURL(const extensions::Extension* extension, 65 GURL GetIconURL(const extensions::Extension* extension,
68 int icon_size, 66 int icon_size,
69 ExtensionIconSet::MatchType match, 67 ExtensionIconSet::MatchType match,
70 bool grayscale) const override; 68 bool grayscale) const override;
71 }; 69 };
72 70
73 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA TE_H_ 71 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA TE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/management/chrome_management_api_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698