| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |