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

Side by Side Diff: chrome/browser/android/shortcut_helper.h

Issue 2124703003: Do not show "Add to Home Screen" info bar if WebAPK is installed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_app_banner_already_installed 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHORTCUT_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static void StoreWebappSplashImage(const std::string& webapp_id, 65 static void StoreWebappSplashImage(const std::string& webapp_id,
66 const SkBitmap& splash_image); 66 const SkBitmap& splash_image);
67 67
68 // Returns the given icon, modified to match the launcher requirements. 68 // Returns the given icon, modified to match the launcher requirements.
69 // This method may generate an entirely new icon; if this is the case, 69 // This method may generate an entirely new icon; if this is the case,
70 // |is_generated| will be set to |true|. 70 // |is_generated| will be set to |true|.
71 static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon, 71 static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon,
72 const GURL& url, 72 const GURL& url,
73 bool* is_generated); 73 bool* is_generated);
74 74
75 // Returns true if WebAPKs are enabled and there is a WebAPK installed which
76 // can handle |url|.
77 static bool IsWebApkInstalled(const GURL& url);
78
75 private: 79 private:
76 ShortcutHelper() = delete; 80 ShortcutHelper() = delete;
77 ~ShortcutHelper() = delete; 81 ~ShortcutHelper() = delete;
78 82
79 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); 83 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
80 }; 84 };
81 85
82 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 86 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/banners/app_banner_data_fetcher_android.cc ('k') | chrome/browser/android/shortcut_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698