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

Side by Side Diff: chrome/browser/cookies_tree_model.cc

Issue 10823225: Quota info and Flash LSO cookie tree nodes can't be storage protected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698