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

Side by Side Diff: chrome/browser/android/banners/app_banner_data_fetcher_android.h

Issue 2064943002: Pass in extra parameters to WebApkBuilder#buildWebApkAsync() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_manifest000 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 base::Closure FetchWebappSplashScreenImageCallback( 36 base::Closure FetchWebappSplashScreenImageCallback(
37 const std::string& webapp_id); 37 const std::string& webapp_id);
38 38
39 protected: 39 protected:
40 ~AppBannerDataFetcherAndroid() override; 40 ~AppBannerDataFetcherAndroid() override;
41 41
42 std::string GetBannerType() override; 42 std::string GetBannerType() override;
43 std::string GetAppIdentifier() override; 43 std::string GetAppIdentifier() override;
44 44
45 private: 45 private:
46 void ShowBanner(const SkBitmap* icon, 46 void ShowBanner(const GURL& icon_url,
47 const SkBitmap* icon,
47 const base::string16& title, 48 const base::string16& title,
48 const std::string& referrer) override; 49 const std::string& referrer) override;
49 50
50 base::android::ScopedJavaGlobalRef<jobject> native_app_data_; 51 base::android::ScopedJavaGlobalRef<jobject> native_app_data_;
51 std::string native_app_package_; 52 std::string native_app_package_;
52 53
53 int ideal_splash_image_size_in_dp_; 54 int ideal_splash_image_size_in_dp_;
54 int minimum_splash_image_size_in_dp_; 55 int minimum_splash_image_size_in_dp_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherAndroid); 57 DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherAndroid);
57 }; 58 };
58 59
59 } // namespace banners 60 } // namespace banners
60 61
61 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_ 62 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698