Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGATE_ H_ | |
| 7 | |
| 8 #include "base/task/cancelable_task_tracker.h" | |
| 9 #include "chrome/browser/extensions/extension_install_prompt.h" | |
| 10 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | |
| 11 #include "extensions/browser/api/management/management_api_delegate.h" | |
| 12 | |
| 13 namespace favicon_base { | |
| 14 struct FaviconImageResult; | |
| 15 } // namespace favicon_base | |
| 16 | |
| 17 namespace extensions { | |
|
Ken Rockot(use gerrit already)
2014/11/03 17:22:57
nit: I'd like to stop introducing new code into th
| |
| 18 | |
| 19 class ChromeManagementAPIDelegate : public ManagementAPIDelegate { | |
| 20 public: | |
| 21 ChromeManagementAPIDelegate(); | |
| 22 ~ChromeManagementAPIDelegate() override; | |
| 23 | |
| 24 // ManagementAPIDelegate. | |
| 25 bool LaunchAppFunctionDelegate( | |
| 26 const Extension* extension, | |
| 27 content::BrowserContext* context) const override; | |
| 28 GURL GetFullLaunchURL(const Extension* extension) const override; | |
| 29 LaunchType GetLaunchType(const ExtensionPrefs* prefs, | |
| 30 const Extension* extension) const override; | |
| 31 void GetPermissionWarningsByManifestFunctionDelegate( | |
| 32 ManagementGetPermissionWarningsByManifestFunction* function, | |
| 33 const std::string& manifest_str) const override; | |
| 34 scoped_ptr<InstallPromptDelegate> SetEnabledFunctionDelegate( | |
| 35 ManagementSetEnabledFunction* function, | |
| 36 const Extension* extension) const override; | |
| 37 scoped_ptr<UninstallDialogDelegate> UninstallFunctionDelegate( | |
| 38 extensions::ManagementUninstallFunctionBase* function, | |
| 39 const std::string& target_extension_id) const override; | |
| 40 bool CreateAppShortcutFunctionDelegate( | |
| 41 ManagementCreateAppShortcutFunction* function, | |
| 42 const Extension* extension) const override; | |
| 43 scoped_ptr<AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( | |
| 44 ManagementGenerateAppForLinkFunction* function, | |
| 45 content::BrowserContext* context, | |
| 46 const std::string& title, | |
| 47 const GURL& launch_url) const override; | |
| 48 bool IsStreamlinedHostedAppsEnabled() const override; | |
| 49 void EnableExtension(content::BrowserContext* context, | |
| 50 const std::string& extension_id) const override; | |
| 51 void DisableExtension(content::BrowserContext* context, | |
| 52 const std::string& extension_id, | |
| 53 Extension::DisableReason disable_reason) const override; | |
| 54 bool UninstallExtension(content::BrowserContext* context, | |
| 55 const std::string& transient_extension_id, | |
| 56 UninstallReason reason, | |
| 57 const base::Closure& deletion_done_callback, | |
| 58 base::string16* error) const override; | |
| 59 void SetLaunchType(content::BrowserContext* context, | |
| 60 const std::string& extension_id, | |
| 61 LaunchType launch_type) const override; | |
| 62 GURL GetIconURL(const Extension* extension, | |
| 63 int icon_size, | |
| 64 ExtensionIconSet::MatchType match, | |
| 65 bool grayscale, | |
| 66 bool* exists) const override; | |
| 67 }; | |
| 68 | |
| 69 } // namespace extensions | |
| 70 | |
| 71 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA TE_H_ | |
| OLD | NEW |