| Index: chrome/browser/android/banners/app_banner_data_fetcher_android.h
|
| diff --git a/chrome/browser/android/banners/app_banner_data_fetcher_android.h b/chrome/browser/android/banners/app_banner_data_fetcher_android.h
|
| deleted file mode 100644
|
| index 5fc7ae04edc60a0fcaa8abf1e8da69ae4a88065c..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/android/banners/app_banner_data_fetcher_android.h
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
|
| -#define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
|
| -
|
| -#include "base/android/jni_android.h"
|
| -#include "base/callback_forward.h"
|
| -#include "base/macros.h"
|
| -#include "chrome/browser/banners/app_banner_data_fetcher.h"
|
| -
|
| -namespace banners {
|
| -
|
| -// Fetches data required to show a banner for the URL currently shown by the
|
| -// WebContents. Extends the regular fetch to add support for Android apps.
|
| -class AppBannerDataFetcherAndroid : public AppBannerDataFetcher {
|
| - public:
|
| - AppBannerDataFetcherAndroid(content::WebContents* web_contents,
|
| - base::WeakPtr<Delegate> weak_delegate,
|
| - int ideal_icon_size_in_dp,
|
| - int minimum_icon_size_in_dp,
|
| - int ideal_splash_image_size_in_dp,
|
| - int minimum_splash_image_size_in_dp,
|
| - bool is_debug_mode);
|
| -
|
| - // Saves information about the Android app being promoted by the current page,
|
| - // then continues the creation pipeline.
|
| - bool ContinueFetching(const base::string16& app_title,
|
| - const std::string& app_package,
|
| - const base::android::JavaRef<jobject>& app_data,
|
| - const GURL& image_url);
|
| -
|
| - // Returns a callback which fetches the splash screen image and stores it in
|
| - // WebappDataStorage.
|
| - base::Closure FetchWebappSplashScreenImageCallback(
|
| - const std::string& webapp_id);
|
| -
|
| - protected:
|
| - ~AppBannerDataFetcherAndroid() override;
|
| -
|
| - std::string GetBannerType() override;
|
| - std::string GetAppIdentifier() override;
|
| -
|
| - private:
|
| - bool IsWebAppInstalled(content::BrowserContext* browser_context,
|
| - const GURL& start_url) override;
|
| -
|
| - void ShowBanner(const GURL& icon_url,
|
| - const SkBitmap* icon,
|
| - const base::string16& title,
|
| - const std::string& referrer) override;
|
| -
|
| - base::android::ScopedJavaGlobalRef<jobject> native_app_data_;
|
| - std::string native_app_package_;
|
| -
|
| - int ideal_splash_image_size_in_dp_;
|
| - int minimum_splash_image_size_in_dp_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherAndroid);
|
| -};
|
| -
|
| -} // namespace banners
|
| -
|
| -#endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
|
|
|