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

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

Issue 202523011: Add a function to create a bookmark app from a WebApplicationInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_tab_helper
Patch Set: fix the fix Created 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Downloads icons from the given WebApplicationInfo using the given 81 // Downloads icons from the given WebApplicationInfo using the given
82 // WebContents. 82 // WebContents.
83 scoped_ptr<FaviconDownloader> favicon_downloader_; 83 scoped_ptr<FaviconDownloader> favicon_downloader_;
84 84
85 // Used to install the created bookmark app. 85 // Used to install the created bookmark app.
86 scoped_refptr<extensions::CrxInstaller> crx_installer_; 86 scoped_refptr<extensions::CrxInstaller> crx_installer_;
87 87
88 content::NotificationRegistrar registrar_; 88 content::NotificationRegistrar registrar_;
89 }; 89 };
90 90
91 // Creates or updates a bookmark app from the given |web_app_info|. Icons will
92 // not be downloaded so only supplied icon data will be used.
93 void CreateOrUpdateBookmarkApp(ExtensionService* service,
94 WebApplicationInfo& web_app_info);
95
91 } // namespace extensions 96 } // namespace extensions
92 97
93 #endif // CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_ 98 #endif // CHROME_BROWSER_EXTENSIONS_BOOKMARK_APP_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698