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

Side by Side Diff: chrome/browser/extensions/bookmark_app_helper.h

Issue 2064943002: Pass in extra parameters to WebApkBuilder#buildWebApkAsync() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_manifest000 Created 4 years, 5 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_BOOKMARK_APP_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Begins the asynchronous bookmark app creation from an app banner. 108 // Begins the asynchronous bookmark app creation from an app banner.
109 void CreateFromAppBanner(const CreateBookmarkAppCallback& callback, 109 void CreateFromAppBanner(const CreateBookmarkAppCallback& callback,
110 const content::Manifest& manifest); 110 const content::Manifest& manifest);
111 111
112 private: 112 private:
113 friend class TestBookmarkAppHelper; 113 friend class TestBookmarkAppHelper;
114 114
115 // Called by the WebContents when the manifest has been downloaded. If there 115 // Called by the WebContents when the manifest has been downloaded. If there
116 // is no manifest, or the WebContents is destroyed before the manifest could 116 // is no manifest, or the WebContents is destroyed before the manifest could
117 // be downloaded, this is called with an empty manifest. 117 // be downloaded, this is called with an empty manifest.
118 void OnDidGetManifest(const content::Manifest& manifest); 118 void OnDidGetManifest(const GURL& manifest_url,
119 const content::Manifest& manifest);
119 120
120 // Performs post icon download tasks including installing the bookmark app. 121 // Performs post icon download tasks including installing the bookmark app.
121 void OnIconsDownloaded(bool success, 122 void OnIconsDownloaded(bool success,
122 const std::map<GURL, std::vector<SkBitmap> >& bitmaps); 123 const std::map<GURL, std::vector<SkBitmap> >& bitmaps);
123 124
124 // Called after the bubble has been shown, and the user has either accepted or 125 // Called after the bubble has been shown, and the user has either accepted or
125 // the dialog was dismissed. 126 // the dialog was dismissed.
126 void OnBubbleCompleted(bool user_accepted, 127 void OnBubbleCompleted(bool user_accepted,
127 const WebApplicationInfo& web_app_info); 128 const WebApplicationInfo& web_app_info);
128 129
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 content::BrowserContext* browser_context, 176 content::BrowserContext* browser_context,
176 const extensions::Extension* extension, 177 const extensions::Extension* extension,
177 const base::Callback<void(const WebApplicationInfo&)> callback); 178 const base::Callback<void(const WebApplicationInfo&)> callback);
178 179
179 // Returns whether the given |url| is a valid bookmark app url. 180 // Returns whether the given |url| is a valid bookmark app url.
180 bool IsValidBookmarkAppUrl(const GURL& url); 181 bool IsValidBookmarkAppUrl(const GURL& url);
181 182
182 } // namespace extensions 183 } // namespace extensions
183 184
184 #endif // CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_ 185 #endif // CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_data_fetcher_desktop.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698