| 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> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 const std::string& domain) | 911 const std::string& domain) |
| 912 : domain_(domain) {} | 912 : domain_(domain) {} |
| 913 CookieTreeFlashLSONode::~CookieTreeFlashLSONode() {} | 913 CookieTreeFlashLSONode::~CookieTreeFlashLSONode() {} |
| 914 | 914 |
| 915 void CookieTreeFlashLSONode::DeleteStoredObjects() { | 915 void CookieTreeFlashLSONode::DeleteStoredObjects() { |
| 916 // We are one level below the host node. | 916 // We are one level below the host node. |
| 917 CookieTreeHostNode* host = static_cast<CookieTreeHostNode*>(parent()); | 917 CookieTreeHostNode* host = static_cast<CookieTreeHostNode*>(parent()); |
| 918 CHECK_EQ(host->GetDetailedInfo().node_type, | 918 CHECK_EQ(host->GetDetailedInfo().node_type, |
| 919 CookieTreeNode::DetailedInfo::TYPE_HOST); | 919 CookieTreeNode::DetailedInfo::TYPE_HOST); |
| 920 LocalDataContainer* container = GetModel()->data_container(); | 920 LocalDataContainer* container = GetModel()->data_container(); |
| 921 container->flash_lso_helper_->DeleteFlashLSOsForSite(domain_); | 921 container->flash_lso_helper_->DeleteFlashLSOsForSite( |
| 922 domain_, base::Closure()); |
| 922 } | 923 } |
| 923 | 924 |
| 924 CookieTreeNode::DetailedInfo CookieTreeFlashLSONode::GetDetailedInfo() const { | 925 CookieTreeNode::DetailedInfo CookieTreeFlashLSONode::GetDetailedInfo() const { |
| 925 return DetailedInfo().InitFlashLSO(domain_); | 926 return DetailedInfo().InitFlashLSO(domain_); |
| 926 } | 927 } |
| 927 | 928 |
| 928 /////////////////////////////////////////////////////////////////////////////// | 929 /////////////////////////////////////////////////////////////////////////////// |
| 929 // ScopedBatchUpdateNotifier | 930 // ScopedBatchUpdateNotifier |
| 930 CookiesTreeModel::ScopedBatchUpdateNotifier::ScopedBatchUpdateNotifier( | 931 CookiesTreeModel::ScopedBatchUpdateNotifier::ScopedBatchUpdateNotifier( |
| 931 CookiesTreeModel* model, | 932 CookiesTreeModel* model, |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 void CookiesTreeModel::MaybeNotifyBatchesEnded() { | 1521 void CookiesTreeModel::MaybeNotifyBatchesEnded() { |
| 1521 // Only notify the observers if this is the outermost call to EndBatch() if | 1522 // Only notify the observers if this is the outermost call to EndBatch() if |
| 1522 // called in a nested manner. | 1523 // called in a nested manner. |
| 1523 if (batches_ended_ == batches_started_ && | 1524 if (batches_ended_ == batches_started_ && |
| 1524 batches_seen_ == batches_expected_) { | 1525 batches_seen_ == batches_expected_) { |
| 1525 FOR_EACH_OBSERVER(Observer, | 1526 FOR_EACH_OBSERVER(Observer, |
| 1526 cookies_observer_list_, | 1527 cookies_observer_list_, |
| 1527 TreeModelEndBatch(this)); | 1528 TreeModelEndBatch(this)); |
| 1528 } | 1529 } |
| 1529 } | 1530 } |
| OLD | NEW |