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

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

Issue 2671853002: Rename best icon to best primary icon in Web app related code. (Closed)
Patch Set: Removing java changes Created 3 years, 10 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_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // - the package name of the WebAPK. 45 // - the package name of the WebAPK.
46 using FinishCallback = base::Callback<void(bool, const std::string&)>; 46 using FinishCallback = base::Callback<void(bool, const std::string&)>;
47 47
48 ~WebApkInstaller() override; 48 ~WebApkInstaller() override;
49 49
50 // Creates a self-owned WebApkInstaller instance and talks to the Chrome 50 // Creates a self-owned WebApkInstaller instance and talks to the Chrome
51 // WebAPK server to generate a WebAPK on the server and to Google Play to 51 // WebAPK server to generate a WebAPK on the server and to Google Play to
52 // install the downloaded WebAPK. Calls |callback| once the install completed 52 // install the downloaded WebAPK. Calls |callback| once the install completed
53 // or failed. 53 // or failed.
54 static void InstallAsync(content::BrowserContext* context, 54 static void InstallAsync(content::BrowserContext* context,
55 const ShortcutInfo& shortcut_info, 55 const ShortcutInfo& shortcut_info,
56 const SkBitmap& shortcut_icon, 56 const SkBitmap& shortcut_icon,
57 const FinishCallback& finish_callback); 57 const FinishCallback& finish_callback);
58 58
59 // Creates a self-owned WebApkInstaller instance and talks to the Chrome 59 // Creates a self-owned WebApkInstaller instance and talks to the Chrome
60 // WebAPK server to update a WebAPK on the server and to the Google Play 60 // WebAPK server to update a WebAPK on the server and to the Google Play
61 // server to install the downloaded WebAPK. Calls |callback| after the request 61 // server to install the downloaded WebAPK. Calls |callback| after the request
62 // to install the WebAPK is sent to the Google Play server. 62 // to install the WebAPK is sent to the Google Play server.
63 static void UpdateAsync( 63 static void UpdateAsync(
64 content::BrowserContext* context, 64 content::BrowserContext* context,
65 const ShortcutInfo& shortcut_info, 65 const ShortcutInfo& shortcut_info,
66 const SkBitmap& shortcut_icon, 66 const SkBitmap& shortcut_icon,
67 const std::string& webapk_package, 67 const std::string& webapk_package,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Points to the Java Object. 279 // Points to the Java Object.
280 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 280 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
281 281
282 // Used to get |weak_ptr_|. 282 // Used to get |weak_ptr_|.
283 base::WeakPtrFactory<WebApkInstaller> weak_ptr_factory_; 283 base::WeakPtrFactory<WebApkInstaller> weak_ptr_factory_;
284 284
285 DISALLOW_COPY_AND_ASSIGN(WebApkInstaller); 285 DISALLOW_COPY_AND_ASSIGN(WebApkInstaller);
286 }; 286 };
287 287
288 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_ 288 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/shortcut_info.h ('k') | chrome/browser/android/webapk/webapk_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698