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

Side by Side Diff: components/content_settings/core/browser/content_settings_rule.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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698