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/browsing_data/cookies_tree_model.h" | 5 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <functional> | 10 #include <functional> |
9 #include <map> | 11 #include <map> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/bind.h" | 14 #include "base/bind.h" |
13 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" | 18 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" |
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 void CookiesTreeModel::MaybeNotifyBatchesEnded() { | 1545 void CookiesTreeModel::MaybeNotifyBatchesEnded() { |
1544 // Only notify the observers if this is the outermost call to EndBatch() if | 1546 // Only notify the observers if this is the outermost call to EndBatch() if |
1545 // called in a nested manner. | 1547 // called in a nested manner. |
1546 if (batches_ended_ == batches_started_ && | 1548 if (batches_ended_ == batches_started_ && |
1547 batches_seen_ == batches_expected_) { | 1549 batches_seen_ == batches_expected_) { |
1548 FOR_EACH_OBSERVER(Observer, | 1550 FOR_EACH_OBSERVER(Observer, |
1549 cookies_observer_list_, | 1551 cookies_observer_list_, |
1550 TreeModelEndBatch(this)); | 1552 TreeModelEndBatch(this)); |
1551 } | 1553 } |
1552 } | 1554 } |
OLD | NEW |