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

Side by Side Diff: extensions/browser/api/management/management_api_delegate.h

Issue 2261313002: [Extensions] Convert some SyncExtensionFunctions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready Created 4 years, 3 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Manages the lifetime of the bookmark app creation. 43 // Manages the lifetime of the bookmark app creation.
44 class AppForLinkDelegate { 44 class AppForLinkDelegate {
45 public: 45 public:
46 virtual ~AppForLinkDelegate() {} 46 virtual ~AppForLinkDelegate() {}
47 }; 47 };
48 48
49 class ManagementAPIDelegate { 49 class ManagementAPIDelegate {
50 public: 50 public:
51 virtual ~ManagementAPIDelegate() {} 51 virtual ~ManagementAPIDelegate() {}
52 52
53 // Launches the app |extension|. Returns true on success. 53 // Launches the app |extension|.
54 virtual bool LaunchAppFunctionDelegate( 54 virtual void LaunchAppFunctionDelegate(
55 const Extension* extension, 55 const Extension* extension,
56 content::BrowserContext* context) const = 0; 56 content::BrowserContext* context) const = 0;
57 57
58 // Forwards the call to extensions::util::IsNewBookmarkAppsEnabled in 58 // Forwards the call to extensions::util::IsNewBookmarkAppsEnabled in
59 // chrome. 59 // chrome.
60 virtual bool IsNewBookmarkAppsEnabled() const = 0; 60 virtual bool IsNewBookmarkAppsEnabled() const = 0;
61 61
62 // Forwards the call to extensions::util::CanHostedAppsOpenInWindows in 62 // Forwards the call to extensions::util::CanHostedAppsOpenInWindows in
63 // chrome. 63 // chrome.
64 virtual bool CanHostedAppsOpenInWindows() const = 0; 64 virtual bool CanHostedAppsOpenInWindows() const = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual GURL GetIconURL(const Extension* extension, 133 virtual GURL GetIconURL(const Extension* extension,
134 int icon_size, 134 int icon_size,
135 ExtensionIconSet::MatchType match, 135 ExtensionIconSet::MatchType match,
136 bool grayscale, 136 bool grayscale,
137 bool* exists) const = 0; 137 bool* exists) const = 0;
138 }; 138 };
139 139
140 } // namespace extensions 140 } // namespace extensions
141 141
142 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ 142 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698