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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 398373006: Audit the last time the media stream content settings have been used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Indent fixing. Created 6 years, 5 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/media/media_stream_devices_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/host_content_settings_map.h
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
index 915c4a7582da102720c2dd9bdb0aecd22d816c5d..148e325bb554f9830763cffd93ad8acfb2ab0aee 100644
--- a/chrome/browser/content_settings/host_content_settings_map.h
+++ b/chrome/browser/content_settings/host_content_settings_map.h
@@ -218,6 +218,12 @@ class HostContentSettingsMap
const GURL& secondary_url,
ContentSettingsType content_type);
+ // Sets the last time that a given content type has been used for a pattern
+ // pair to the current time.
+ void UpdateLastUsageByPattern(const ContentSettingsPattern& primary_pattern,
+ const ContentSettingsPattern& secondary_pattern,
+ ContentSettingsType content_type);
+
// Returns the last time the pattern that matches the URL has requested
// permission for the |content_type| setting.
base::Time GetLastUsage(const GURL& primary_url,
@@ -271,12 +277,6 @@ class HostContentSettingsMap
// it is not being called too late.
void UsedContentSettingsProviders() const;
- // Convenience method for updating the last usage of a content type for a
- // pattern.
- void UpdateLastUsageByPattern(const ContentSettingsPattern& primary_pattern,
- const ContentSettingsPattern& secondary_pattern,
- ContentSettingsType content_type);
-
content_settings::PrefProvider* GetPrefProvider();
#ifndef NDEBUG
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698