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

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

Issue 919843003: Clear app banner data when history is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/banners/app_banner_settings_helper.h
diff --git a/chrome/browser/banners/app_banner_settings_helper.h b/chrome/browser/banners/app_banner_settings_helper.h
index ee6a7c4fc978543ee0dfedee3d84fab5cc784e92..10b86fb7d1616c96b574e6bfda256037265cf096 100644
--- a/chrome/browser/banners/app_banner_settings_helper.h
+++ b/chrome/browser/banners/app_banner_settings_helper.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
#define CHROME_BROWSER_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
+#include <set>
#include <string>
#include <vector>
@@ -16,6 +17,7 @@ class WebContents;
} // namespace content
class GURL;
+class Profile;
// Utility class to record banner events for the given package or start url.
//
@@ -44,6 +46,13 @@ class AppBannerSettingsHelper {
APP_BANNER_EVENT_NUM_EVENTS,
};
+ // The content setting basically records a simplified subset of history.
+ // For privacy reasons this needs to be cleared. The ClearHistoryForURLs
+ // function removes any information from the banner content settings for the
+ // given URls.
+ static void ClearHistoryForURLs(Profile* profile,
+ const std::set<GURL>& origin_urls);
+
static void RecordBannerEvent(content::WebContents* web_contents,
const GURL& origin_url,
const std::string& package_name_or_start_url,
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698