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

Side by Side Diff: chrome/browser/android/webapk/webapk_install_service.h

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: addressing comments Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 explicit WebApkInstallService(content::BrowserContext* browser_context); 51 explicit WebApkInstallService(content::BrowserContext* browser_context);
52 ~WebApkInstallService() override; 52 ~WebApkInstallService() override;
53 53
54 // Returns whether an install for |web_manifest_url| is in progress. 54 // Returns whether an install for |web_manifest_url| is in progress.
55 bool IsInstallInProgress(const GURL& web_manifest_url); 55 bool IsInstallInProgress(const GURL& web_manifest_url);
56 56
57 // Talks to the Chrome WebAPK server to generate a WebAPK on the server and to 57 // Talks to the Chrome WebAPK server to generate a WebAPK on the server and to
58 // Google Play to install the downloaded WebAPK. Calls |callback| once the 58 // Google Play to install the downloaded WebAPK. Calls |callback| once the
59 // install completed or failed. 59 // install completed or failed.
60 void InstallAsync(const ShortcutInfo& shortcut_info, 60 void InstallAsync(const ShortcutInfo& shortcut_info,
61 const SkBitmap& shortcut_icon, 61 const SkBitmap& primary_icon,
62 const SkBitmap& badge_icon,
62 const FinishCallback& finish_callback); 63 const FinishCallback& finish_callback);
63 64
64 // Talks to the Chrome WebAPK server to update a WebAPK on the server and to 65 // Talks to the Chrome WebAPK server to update a WebAPK on the server and to
65 // the Google Play server to install the downloaded WebAPK. Calls |callback| 66 // the Google Play server to install the downloaded WebAPK. Calls |callback|
66 // after the request to install the WebAPK is sent to Google Play. 67 // after the request to install the WebAPK is sent to Google Play.
67 void UpdateAsync( 68 void UpdateAsync(
68 const ShortcutInfo& shortcut_info, 69 const ShortcutInfo& shortcut_info,
69 const SkBitmap& shortcut_icon, 70 const SkBitmap& shortcut_icon,
70 const std::string& webapk_package, 71 const std::string& webapk_package,
71 int webapk_version, 72 int webapk_version,
(...skipping 14 matching lines...) Expand all
86 // In progress installs. 87 // In progress installs.
87 std::set<GURL> installs_; 88 std::set<GURL> installs_;
88 89
89 // Used to get |weak_ptr_|. 90 // Used to get |weak_ptr_|.
90 base::WeakPtrFactory<WebApkInstallService> weak_ptr_factory_; 91 base::WeakPtrFactory<WebApkInstallService> weak_ptr_factory_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(WebApkInstallService); 93 DISALLOW_COPY_AND_ASSIGN(WebApkInstallService);
93 }; 94 };
94 95
95 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_ 96 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALL_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/webapk/webapk_install_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698