OLD | NEW |
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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "chrome/browser/content_settings/content_settings_rule.h" | 6 #include "components/content_settings/core/browser/content_settings_rule.h" |
7 | 7 |
8 namespace content_settings { | 8 namespace content_settings { |
9 | 9 |
10 Rule::Rule() {} | 10 Rule::Rule() {} |
11 | 11 |
12 Rule::Rule( | 12 Rule::Rule( |
13 const ContentSettingsPattern& primary_pattern, | 13 const ContentSettingsPattern& primary_pattern, |
14 const ContentSettingsPattern& secondary_pattern, | 14 const ContentSettingsPattern& secondary_pattern, |
15 base::Value* value) | 15 base::Value* value) |
16 : primary_pattern(primary_pattern), | 16 : primary_pattern(primary_pattern), |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 iterators_.begin(); | 60 iterators_.begin(); |
61 DCHECK(current_iterator != iterators_.end()); | 61 DCHECK(current_iterator != iterators_.end()); |
62 DCHECK((*current_iterator)->HasNext()); | 62 DCHECK((*current_iterator)->HasNext()); |
63 const Rule& to_return = (*current_iterator)->Next(); | 63 const Rule& to_return = (*current_iterator)->Next(); |
64 if (!(*current_iterator)->HasNext()) | 64 if (!(*current_iterator)->HasNext()) |
65 iterators_.erase(current_iterator); | 65 iterators_.erase(current_iterator); |
66 return to_return; | 66 return to_return; |
67 } | 67 } |
68 | 68 |
69 } // namespace content_settings | 69 } // namespace content_settings |
OLD | NEW |