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 EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "extensions/browser/uninstall_reason.h" | 9 #include "extensions/browser/uninstall_reason.h" |
10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 class ManagementAPIDelegate { | 47 class ManagementAPIDelegate { |
48 public: | 48 public: |
49 virtual ~ManagementAPIDelegate() {} | 49 virtual ~ManagementAPIDelegate() {} |
50 | 50 |
51 // Launches the app |extension|. Returns true on success. | 51 // Launches the app |extension|. Returns true on success. |
52 virtual bool LaunchAppFunctionDelegate( | 52 virtual bool LaunchAppFunctionDelegate( |
53 const Extension* extension, | 53 const Extension* extension, |
54 content::BrowserContext* context) const = 0; | 54 content::BrowserContext* context) const = 0; |
55 | 55 |
56 // Forwards the call to extensions::util::IsStreamlinedHostedAppsEnabled in | 56 // Forwards the call to extensions::util::IsNewBookmarkAppsEnabled in |
57 // chrome. | 57 // chrome. |
58 virtual bool IsStreamlinedHostedAppsEnabled() const = 0; | 58 virtual bool IsNewBookmarkAppsEnabled() const = 0; |
59 | 59 |
60 // Forwards the call to AppLaunchInfo::GetFullLaunchURL in chrome. | 60 // Forwards the call to AppLaunchInfo::GetFullLaunchURL in chrome. |
61 virtual GURL GetFullLaunchURL(const Extension* extension) const = 0; | 61 virtual GURL GetFullLaunchURL(const Extension* extension) const = 0; |
62 | 62 |
63 // Forwards the call to launch_util::GetLaunchType in chrome. | 63 // Forwards the call to launch_util::GetLaunchType in chrome. |
64 virtual LaunchType GetLaunchType(const ExtensionPrefs* prefs, | 64 virtual LaunchType GetLaunchType(const ExtensionPrefs* prefs, |
65 const Extension* extension) const = 0; | 65 const Extension* extension) const = 0; |
66 | 66 |
67 // Parses the manifest and calls back the | 67 // Parses the manifest and calls back the |
68 // ManagementGetPermissionWarningsByManifestFunction. | 68 // ManagementGetPermissionWarningsByManifestFunction. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual GURL GetIconURL(const Extension* extension, | 119 virtual GURL GetIconURL(const Extension* extension, |
120 int icon_size, | 120 int icon_size, |
121 ExtensionIconSet::MatchType match, | 121 ExtensionIconSet::MatchType match, |
122 bool grayscale, | 122 bool grayscale, |
123 bool* exists) const = 0; | 123 bool* exists) const = 0; |
124 }; | 124 }; |
125 | 125 |
126 } // namespace extensions | 126 } // namespace extensions |
127 | 127 |
128 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 128 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
OLD | NEW |