| 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 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 Loading... |
| 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_ |
| OLD | NEW |