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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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 12 matching lines...) Expand all
23 bool LaunchAppFunctionDelegate( 23 bool LaunchAppFunctionDelegate(
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 std::unique_ptr<extensions::InstallPromptDelegate> SetEnabledFunctionDelegate(
34 content::WebContents* web_contents, 34 content::WebContents* web_contents,
35 content::BrowserContext* browser_context, 35 content::BrowserContext* browser_context,
36 const extensions::Extension* extension, 36 const extensions::Extension* extension,
37 const base::Callback<void(bool)>& callback) const override; 37 const base::Callback<void(bool)>& callback) const override;
38 scoped_ptr<extensions::RequirementsChecker> CreateRequirementsChecker() 38 std::unique_ptr<extensions::RequirementsChecker> CreateRequirementsChecker()
39 const override; 39 const override;
40 scoped_ptr<extensions::UninstallDialogDelegate> UninstallFunctionDelegate( 40 std::unique_ptr<extensions::UninstallDialogDelegate>
41 UninstallFunctionDelegate(
41 extensions::ManagementUninstallFunctionBase* function, 42 extensions::ManagementUninstallFunctionBase* function,
42 const extensions::Extension* target_extension, 43 const extensions::Extension* target_extension,
43 bool show_programmatic_uninstall_ui) const override; 44 bool show_programmatic_uninstall_ui) const override;
44 bool CreateAppShortcutFunctionDelegate( 45 bool CreateAppShortcutFunctionDelegate(
45 extensions::ManagementCreateAppShortcutFunction* function, 46 extensions::ManagementCreateAppShortcutFunction* function,
46 const extensions::Extension* extension) const override; 47 const extensions::Extension* extension) const override;
47 scoped_ptr<extensions::AppForLinkDelegate> GenerateAppForLinkFunctionDelegate( 48 std::unique_ptr<extensions::AppForLinkDelegate>
49 GenerateAppForLinkFunctionDelegate(
48 extensions::ManagementGenerateAppForLinkFunction* function, 50 extensions::ManagementGenerateAppForLinkFunction* function,
49 content::BrowserContext* context, 51 content::BrowserContext* context,
50 const std::string& title, 52 const std::string& title,
51 const GURL& launch_url) const override; 53 const GURL& launch_url) const override;
52 bool CanHostedAppsOpenInWindows() const override; 54 bool CanHostedAppsOpenInWindows() const override;
53 bool IsNewBookmarkAppsEnabled() const override; 55 bool IsNewBookmarkAppsEnabled() const override;
54 void EnableExtension(content::BrowserContext* context, 56 void EnableExtension(content::BrowserContext* context,
55 const std::string& extension_id) const override; 57 const std::string& extension_id) const override;
56 void DisableExtension( 58 void DisableExtension(
57 content::BrowserContext* context, 59 content::BrowserContext* context,
58 const std::string& extension_id, 60 const std::string& extension_id,
59 extensions::Extension::DisableReason disable_reason) const override; 61 extensions::Extension::DisableReason disable_reason) const override;
60 bool UninstallExtension(content::BrowserContext* context, 62 bool UninstallExtension(content::BrowserContext* context,
61 const std::string& transient_extension_id, 63 const std::string& transient_extension_id,
62 extensions::UninstallReason reason, 64 extensions::UninstallReason reason,
63 const base::Closure& deletion_done_callback, 65 const base::Closure& deletion_done_callback,
64 base::string16* error) const override; 66 base::string16* error) const override;
65 void SetLaunchType(content::BrowserContext* context, 67 void SetLaunchType(content::BrowserContext* context,
66 const std::string& extension_id, 68 const std::string& extension_id,
67 extensions::LaunchType launch_type) const override; 69 extensions::LaunchType launch_type) const override;
68 GURL GetIconURL(const extensions::Extension* extension, 70 GURL GetIconURL(const extensions::Extension* extension,
69 int icon_size, 71 int icon_size,
70 ExtensionIconSet::MatchType match, 72 ExtensionIconSet::MatchType match,
71 bool grayscale, 73 bool grayscale,
72 bool* exists) const override; 74 bool* exists) const override;
73 }; 75 };
74 76
75 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA TE_H_ 77 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_CHROME_MANAGEMENT_API_DELEGA TE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698