| 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 19 matching lines...) Expand all Loading... |
| 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 extensions::ManagementSetEnabledFunction* function, |
| 35 const extensions::Extension* extension) const override; | 35 const extensions::Extension* extension) const override; |
| 36 scoped_ptr<extensions::RequirementsChecker> CreateRequirementsChecker() | 36 scoped_ptr<extensions::RequirementsChecker> CreateRequirementsChecker() |
| 37 const override; | 37 const override; |
| 38 scoped_ptr<extensions::UninstallDialogDelegate> UninstallFunctionDelegate( | 38 scoped_ptr<extensions::UninstallDialogDelegate> UninstallFunctionDelegate( |
| 39 extensions::ManagementUninstallFunctionBase* function, | 39 extensions::ManagementUninstallFunctionBase* function, |
| 40 const std::string& target_extension_id) const override; | 40 const extensions::Extension* target_extension, |
| 41 bool show_programmatic_uninstall_ui) const override; |
| 41 bool CreateAppShortcutFunctionDelegate( | 42 bool CreateAppShortcutFunctionDelegate( |
| 42 extensions::ManagementCreateAppShortcutFunction* function, | 43 extensions::ManagementCreateAppShortcutFunction* function, |
| 43 const extensions::Extension* extension) const override; | 44 const extensions::Extension* extension) const override; |
| 44 scoped_ptr<extensions::AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( | 45 scoped_ptr<extensions::AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( |
| 45 extensions::ManagementGenerateAppForLinkFunction* function, | 46 extensions::ManagementGenerateAppForLinkFunction* function, |
| 46 content::BrowserContext* context, | 47 content::BrowserContext* context, |
| 47 const std::string& title, | 48 const std::string& title, |
| 48 const GURL& launch_url) const override; | 49 const GURL& launch_url) const override; |
| 49 bool IsNewBookmarkAppsEnabled() const override; | 50 bool IsNewBookmarkAppsEnabled() const override; |
| 50 void EnableExtension(content::BrowserContext* context, | 51 void EnableExtension(content::BrowserContext* context, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 const std::string& extension_id, | 63 const std::string& extension_id, |
| 63 extensions::LaunchType launch_type) const override; | 64 extensions::LaunchType launch_type) const override; |
| 64 GURL GetIconURL(const extensions::Extension* extension, | 65 GURL GetIconURL(const extensions::Extension* extension, |
| 65 int icon_size, | 66 int icon_size, |
| 66 ExtensionIconSet::MatchType match, | 67 ExtensionIconSet::MatchType match, |
| 67 bool grayscale, | 68 bool grayscale, |
| 68 bool* exists) const override; | 69 bool* exists) const override; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA
TE_H_ | 72 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA
TE_H_ |
| OLD | NEW |