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

Side by Side Diff: chrome/browser/banners/app_banner_manager_desktop.h

Issue 2951763003: Implement experimental app banner flow.
Patch Set: Browser test compile Created 3 years, 6 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_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 31
32 explicit AppBannerManagerDesktop(content::WebContents* web_contents); 32 explicit AppBannerManagerDesktop(content::WebContents* web_contents);
33 33
34 // AppBannerManager overrides. 34 // AppBannerManager overrides.
35 void DidFinishCreatingBookmarkApp( 35 void DidFinishCreatingBookmarkApp(
36 const extensions::Extension* extension, 36 const extensions::Extension* extension,
37 const WebApplicationInfo& web_app_info) override; 37 const WebApplicationInfo& web_app_info) override;
38 bool IsWebAppInstalled(content::BrowserContext* browser_context, 38 bool IsWebAppInstalled(content::BrowserContext* browser_context,
39 const GURL& start_url, 39 const GURL& start_url,
40 const GURL& manifest_url) override; 40 const GURL& manifest_url) override;
41 void ShowBanner() override; 41 void ShowBannerUI() override;
42 42
43 // content::WebContentsObserver override. 43 // content::WebContentsObserver override.
44 void DidFinishLoad(content::RenderFrameHost* render_frame_host, 44 void DidFinishLoad(content::RenderFrameHost* render_frame_host,
45 const GURL& validated_url) override; 45 const GURL& validated_url) override;
46 46
47 // SiteEngagementObserver override. 47 // SiteEngagementObserver override.
48 void OnEngagementIncreased(content::WebContents* web_contents, 48 void OnEngagementIncreased(content::WebContents* web_contents,
49 const GURL& url, 49 const GURL& url,
50 double score) override; 50 double score) override;
51 51
52 std::unique_ptr<extensions::BookmarkAppHelper> bookmark_app_helper_; 52 std::unique_ptr<extensions::BookmarkAppHelper> bookmark_app_helper_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop); 54 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop);
55 }; 55 };
56 56
57 } // namespace banners 57 } // namespace banners
58 58
59 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 59 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager_browsertest.cc ('k') | chrome/browser/banners/app_banner_manager_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698