| OLD | NEW |
| 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 Loading... |
| 24 const extensions::Extension* extension, | 24 const extensions::Extension* extension, |
| 25 content::BrowserContext* context) const override; | 25 content::BrowserContext* context) const override; |
| 26 GURL GetFullLaunchURL(const extensions::Extension* extension) const override; | 26 GURL GetFullLaunchURL(const extensions::Extension* extension) const override; |
| 27 extensions::LaunchType GetLaunchType( | 27 extensions::LaunchType GetLaunchType( |
| 28 const extensions::ExtensionPrefs* prefs, | 28 const extensions::ExtensionPrefs* prefs, |
| 29 const extensions::Extension* extension) const override; | 29 const extensions::Extension* extension) const override; |
| 30 void GetPermissionWarningsByManifestFunctionDelegate( | 30 void GetPermissionWarningsByManifestFunctionDelegate( |
| 31 extensions::ManagementGetPermissionWarningsByManifestFunction* function, | 31 extensions::ManagementGetPermissionWarningsByManifestFunction* function, |
| 32 const std::string& manifest_str) const override; | 32 const std::string& manifest_str) const override; |
| 33 scoped_ptr<extensions::InstallPromptDelegate> SetEnabledFunctionDelegate( | 33 scoped_ptr<extensions::InstallPromptDelegate> SetEnabledFunctionDelegate( |
| 34 extensions::ManagementSetEnabledFunction* function, | 34 content::WebContents* web_contents, |
| 35 const extensions::Extension* extension) const override; | 35 content::BrowserContext* browser_context, |
| 36 const extensions::Extension* extension, |
| 37 const base::Callback<void(bool)>& callback) const override; |
| 36 scoped_ptr<extensions::RequirementsChecker> CreateRequirementsChecker() | 38 scoped_ptr<extensions::RequirementsChecker> CreateRequirementsChecker() |
| 37 const override; | 39 const override; |
| 38 scoped_ptr<extensions::UninstallDialogDelegate> UninstallFunctionDelegate( | 40 scoped_ptr<extensions::UninstallDialogDelegate> UninstallFunctionDelegate( |
| 39 extensions::ManagementUninstallFunctionBase* function, | 41 extensions::ManagementUninstallFunctionBase* function, |
| 40 const extensions::Extension* target_extension, | 42 const extensions::Extension* target_extension, |
| 41 bool show_programmatic_uninstall_ui) const override; | 43 bool show_programmatic_uninstall_ui) const override; |
| 42 bool CreateAppShortcutFunctionDelegate( | 44 bool CreateAppShortcutFunctionDelegate( |
| 43 extensions::ManagementCreateAppShortcutFunction* function, | 45 extensions::ManagementCreateAppShortcutFunction* function, |
| 44 const extensions::Extension* extension) const override; | 46 const extensions::Extension* extension) const override; |
| 45 scoped_ptr<extensions::AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( | 47 scoped_ptr<extensions::AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 64 const std::string& extension_id, | 66 const std::string& extension_id, |
| 65 extensions::LaunchType launch_type) const override; | 67 extensions::LaunchType launch_type) const override; |
| 66 GURL GetIconURL(const extensions::Extension* extension, | 68 GURL GetIconURL(const extensions::Extension* extension, |
| 67 int icon_size, | 69 int icon_size, |
| 68 ExtensionIconSet::MatchType match, | 70 ExtensionIconSet::MatchType match, |
| 69 bool grayscale, | 71 bool grayscale, |
| 70 bool* exists) const override; | 72 bool* exists) const override; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA
TE_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA
TE_H_ |
| OLD | NEW |