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

Side by Side Diff: components/content_settings/core/common/content_settings.cc

Issue 2812113004: Write last_modified date to Content Settings in the PrefProvider (Closed)
Patch Set: Fix Android compilation Created 3 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "components/content_settings/core/common/content_settings.h" 5 #include "components/content_settings/core/common/content_settings.h"
6 6
7 #include "base/containers/hash_tables.h" 7 #include "base/containers/hash_tables.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 DCHECK(base::ContainsKey(kMap, content_setting)); 77 DCHECK(base::ContainsKey(kMap, content_setting));
78 *num_values = arraysize(kHistogramOrder); 78 *num_values = arraysize(kHistogramOrder);
79 return kMap[content_setting]; 79 return kMap[content_setting];
80 } 80 }
81 81
82 ContentSettingPatternSource::ContentSettingPatternSource( 82 ContentSettingPatternSource::ContentSettingPatternSource(
83 const ContentSettingsPattern& primary_pattern, 83 const ContentSettingsPattern& primary_pattern,
84 const ContentSettingsPattern& secondary_pattern, 84 const ContentSettingsPattern& secondary_pattern,
85 ContentSetting setting, 85 ContentSetting setting,
86 base::Time last_modified,
86 const std::string& source, 87 const std::string& source,
87 bool incognito) 88 bool incognito)
88 : primary_pattern(primary_pattern), 89 : primary_pattern(primary_pattern),
89 secondary_pattern(secondary_pattern), 90 secondary_pattern(secondary_pattern),
90 setting(setting), 91 setting(setting),
92 last_modified(last_modified),
91 source(source), 93 source(source),
92 incognito(incognito) {} 94 incognito(incognito) {}
93 95
94 ContentSettingPatternSource::ContentSettingPatternSource() 96 ContentSettingPatternSource::ContentSettingPatternSource()
95 : setting(CONTENT_SETTING_DEFAULT), incognito(false) { 97 : setting(CONTENT_SETTING_DEFAULT), incognito(false) {
96 } 98 }
97 99
98 ContentSettingPatternSource::ContentSettingPatternSource( 100 ContentSettingPatternSource::ContentSettingPatternSource(
99 const ContentSettingPatternSource& other) = default; 101 const ContentSettingPatternSource& other) = default;
100 102
101 RendererContentSettingRules::RendererContentSettingRules() {} 103 RendererContentSettingRules::RendererContentSettingRules() {}
102 104
103 RendererContentSettingRules::~RendererContentSettingRules() {} 105 RendererContentSettingRules::~RendererContentSettingRules() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698