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

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

Issue 1017193002: [App banners] Be less strict about navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SETTINGS_HELPER_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Get the recorded event for an event type that only records the last event. 76 // Get the recorded event for an event type that only records the last event.
77 // Should not be used with APP_BANNER_EVENT_COULD_SHOW. This is only exposed 77 // Should not be used with APP_BANNER_EVENT_COULD_SHOW. This is only exposed
78 // for testing. 78 // for testing.
79 static base::Time GetSingleBannerEvent( 79 static base::Time GetSingleBannerEvent(
80 content::WebContents* web_contents, 80 content::WebContents* web_contents,
81 const GURL& origin_url, 81 const GURL& origin_url,
82 const std::string& package_name_or_start_url, 82 const std::string& package_name_or_start_url,
83 AppBannerEvent event); 83 AppBannerEvent event);
84 84
85 // Checks if a URL is allowed to show a banner for the given package or start
86 // url.
87 static bool IsAllowed(content::WebContents* web_contents,
88 const GURL& origin_url,
89 const std::string& package_name_or_start_url);
90
91 // Blocks a URL from showing a banner for the given package or start url.
92 static void Block(content::WebContents* web_contents,
93 const GURL& origin_url,
94 const std::string& package_name_or_start_url);
95
96 private: 85 private:
97 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(AppBannerSettingsHelper);
98 }; 87 };
99 88
100 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_ 89 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager.cc ('k') | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698