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

Side by Side Diff: chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc

Issue 579673003: Move content_settings_observer.h, content_settings_provider.h, content_settings_rule.* to the compo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comment Created 6 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/content_settings/content_settings_origin_identifier_val ue_map.h" 5 #include "chrome/browser/content_settings/content_settings_origin_identifier_val ue_map.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/content_settings/content_settings_rule.h"
13 #include "chrome/browser/content_settings/content_settings_utils.h" 12 #include "chrome/browser/content_settings/content_settings_utils.h"
13 #include "components/content_settings/core/browser/content_settings_rule.h"
14 #include "components/content_settings/core/common/content_settings_types.h" 14 #include "components/content_settings/core/common/content_settings_types.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content_settings { 17 namespace content_settings {
18 18
19 namespace { 19 namespace {
20 20
21 // This iterator is used for iterating the rules for |content_type| and 21 // This iterator is used for iterating the rules for |content_type| and
22 // |resource_identifier| in the precedence order of the rules. 22 // |resource_identifier| in the precedence order of the rules.
23 class RuleIteratorImpl : public RuleIterator { 23 class RuleIteratorImpl : public RuleIterator {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 EntryMapKey key(content_type, resource_identifier); 177 EntryMapKey key(content_type, resource_identifier);
178 entries_.erase(key); 178 entries_.erase(key);
179 } 179 }
180 180
181 void OriginIdentifierValueMap::clear() { 181 void OriginIdentifierValueMap::clear() {
182 // Delete all owned value objects. 182 // Delete all owned value objects.
183 entries_.clear(); 183 entries_.clear();
184 } 184 }
185 185
186 } // namespace content_settings 186 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698