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/cookies_tree_model.h" | 5 #include "chrome/browser/cookies_tree_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 PopulateAppCacheInfoWithFilter(container, ¬ifier, filter); | 986 PopulateAppCacheInfoWithFilter(container, ¬ifier, filter); |
987 PopulateIndexedDBInfoWithFilter(container, ¬ifier, filter); | 987 PopulateIndexedDBInfoWithFilter(container, ¬ifier, filter); |
988 PopulateFileSystemInfoWithFilter(container, ¬ifier, filter); | 988 PopulateFileSystemInfoWithFilter(container, ¬ifier, filter); |
989 PopulateQuotaInfoWithFilter(container, ¬ifier, filter); | 989 PopulateQuotaInfoWithFilter(container, ¬ifier, filter); |
990 PopulateServerBoundCertInfoWithFilter(container, ¬ifier, filter); | 990 PopulateServerBoundCertInfoWithFilter(container, ¬ifier, filter); |
991 } | 991 } |
992 } | 992 } |
993 | 993 |
994 const ExtensionSet* CookiesTreeModel::ExtensionsProtectingNode( | 994 const ExtensionSet* CookiesTreeModel::ExtensionsProtectingNode( |
995 const CookieTreeNode& cookie_node) { | 995 const CookieTreeNode& cookie_node) { |
996 if (!special_storage_policy_) | 996 if (!special_storage_policy_.get()) |
997 return NULL; | 997 return NULL; |
998 | 998 |
999 CookieTreeNode::DetailedInfo info = cookie_node.GetDetailedInfo(); | 999 CookieTreeNode::DetailedInfo info = cookie_node.GetDetailedInfo(); |
1000 | 1000 |
1001 if (!TypeIsProtected(info.node_type)) | 1001 if (!TypeIsProtected(info.node_type)) |
1002 return NULL; | 1002 return NULL; |
1003 | 1003 |
1004 DCHECK(!info.origin.is_empty()); | 1004 DCHECK(!info.origin.is_empty()); |
1005 return special_storage_policy_->ExtensionsProtectingOrigin(info.origin); | 1005 return special_storage_policy_->ExtensionsProtectingOrigin(info.origin); |
1006 } | 1006 } |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1391 cookies_observer_list_, | 1391 cookies_observer_list_, |
1392 TreeModelEndBatch(this)); | 1392 TreeModelEndBatch(this)); |
1393 } | 1393 } |
1394 } | 1394 } |
1395 | 1395 |
1396 LocalDataContainer* CookiesTreeModel::GetLocalDataContainer( | 1396 LocalDataContainer* CookiesTreeModel::GetLocalDataContainer( |
1397 const std::string& app_id) { | 1397 const std::string& app_id) { |
1398 LocalDataContainer* container = app_data_map_[app_id]; | 1398 LocalDataContainer* container = app_data_map_[app_id]; |
1399 return container; | 1399 return container; |
1400 } | 1400 } |
OLD | NEW |