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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return true; | 122 return true; |
123 case CookieTreeNode::DetailedInfo::TYPE_SESSION_STORAGE: | 123 case CookieTreeNode::DetailedInfo::TYPE_SESSION_STORAGE: |
124 return true; | 124 return true; |
125 case CookieTreeNode::DetailedInfo::TYPE_APPCACHE: | 125 case CookieTreeNode::DetailedInfo::TYPE_APPCACHE: |
126 return true; | 126 return true; |
127 case CookieTreeNode::DetailedInfo::TYPE_INDEXED_DB: | 127 case CookieTreeNode::DetailedInfo::TYPE_INDEXED_DB: |
128 return true; | 128 return true; |
129 case CookieTreeNode::DetailedInfo::TYPE_FILE_SYSTEM: | 129 case CookieTreeNode::DetailedInfo::TYPE_FILE_SYSTEM: |
130 return true; | 130 return true; |
131 case CookieTreeNode::DetailedInfo::TYPE_QUOTA: | 131 case CookieTreeNode::DetailedInfo::TYPE_QUOTA: |
132 return true; | 132 return false; |
133 case CookieTreeNode::DetailedInfo::TYPE_SERVER_BOUND_CERT: | 133 case CookieTreeNode::DetailedInfo::TYPE_SERVER_BOUND_CERT: |
134 return false; | 134 return false; |
| 135 case CookieTreeNode::DetailedInfo::TYPE_FLASH_LSO: |
| 136 return false; |
135 default: | 137 default: |
136 break; | 138 break; |
137 } | 139 } |
138 return false; | 140 return false; |
139 } | 141 } |
140 | 142 |
141 // This function returns the local data container associated with a leaf tree | 143 // This function returns the local data container associated with a leaf tree |
142 // node. The app node is assumed to be 3 levels above the leaf because of the | 144 // node. The app node is assumed to be 3 levels above the leaf because of the |
143 // following structure: | 145 // following structure: |
144 // root -> origin -> storage type -> leaf node | 146 // root -> origin -> storage type -> leaf node |
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1389 cookies_observer_list_, | 1391 cookies_observer_list_, |
1390 TreeModelEndBatch(this)); | 1392 TreeModelEndBatch(this)); |
1391 } | 1393 } |
1392 } | 1394 } |
1393 | 1395 |
1394 LocalDataContainer* CookiesTreeModel::GetLocalDataContainer( | 1396 LocalDataContainer* CookiesTreeModel::GetLocalDataContainer( |
1395 const std::string& app_id) { | 1397 const std::string& app_id) { |
1396 LocalDataContainer* container = app_data_map_[app_id]; | 1398 LocalDataContainer* container = app_data_map_[app_id]; |
1397 return container; | 1399 return container; |
1398 } | 1400 } |
OLD | NEW |