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

Unified Diff: chrome/browser/banners/app_banner_data_fetcher_desktop.h

Issue 2156113002: Replace AppBannerDataFetcher with InstallableManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@banner-refactor
Patch Set: Naming, includes Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/banners/app_banner_data_fetcher_desktop.h
diff --git a/chrome/browser/banners/app_banner_data_fetcher_desktop.h b/chrome/browser/banners/app_banner_data_fetcher_desktop.h
deleted file mode 100644
index 0b594da32c83aa6a75e9360f487349fe2eed7811..0000000000000000000000000000000000000000
--- a/chrome/browser/banners/app_banner_data_fetcher_desktop.h
+++ /dev/null
@@ -1,53 +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_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
-#define CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
-
-#include "base/macros.h"
-#include "chrome/browser/banners/app_banner_data_fetcher.h"
-
-namespace extensions {
-class BookmarkAppHelper;
-class Extension;
-} // namespace extensions
-
-namespace banners {
-
-// Fetches data required to show a banner for the URL currently shown by the
-// WebContents. Extends the regular fetch to support desktop web apps.
-class AppBannerDataFetcherDesktop : public AppBannerDataFetcher {
- public:
- AppBannerDataFetcherDesktop(content::WebContents* web_contents,
- base::WeakPtr<Delegate> weak_delegate,
- int ideal_icon_size_in_dp,
- int minimum_icon_size_in_dp,
- bool is_debug_mode);
-
- // Callback for finishing bookmark app creation
- void FinishCreateBookmarkApp(const extensions::Extension* extension,
- const WebApplicationInfo& web_app_info);
-
- protected:
- ~AppBannerDataFetcherDesktop() override;
-
- private:
- // AppBannerDataFetcher override.
- bool IsWebAppInstalled(content::BrowserContext* browser_context,
- const GURL& start_url) override;
-
- // AppBannerDataFetcher override.
- void ShowBanner(const GURL& icon_url,
- const SkBitmap* icon,
- const base::string16& title,
- const std::string& referrer) override;
-
- std::unique_ptr<extensions::BookmarkAppHelper> bookmark_app_helper_;
-
- DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherDesktop);
-};
-
-} // namespace banners
-
-#endif // CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_

Powered by Google App Engine
This is Rietveld 408576698