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/ui/webui/options/cookies_view_handler.h" | 5 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 content::IndexedDBContext* indexed_db_context = | 187 content::IndexedDBContext* indexed_db_context = |
188 storage_partition->GetIndexedDBContext(); | 188 storage_partition->GetIndexedDBContext(); |
189 fileapi::FileSystemContext* file_system_context = | 189 fileapi::FileSystemContext* file_system_context = |
190 storage_partition->GetFileSystemContext(); | 190 storage_partition->GetFileSystemContext(); |
191 LocalDataContainer* container = new LocalDataContainer( | 191 LocalDataContainer* container = new LocalDataContainer( |
192 new BrowsingDataCookieHelper(profile->GetRequestContext()), | 192 new BrowsingDataCookieHelper(profile->GetRequestContext()), |
193 new BrowsingDataDatabaseHelper(profile), | 193 new BrowsingDataDatabaseHelper(profile), |
194 new BrowsingDataLocalStorageHelper(profile), | 194 new BrowsingDataLocalStorageHelper(profile), |
195 NULL, | 195 NULL, |
196 new BrowsingDataAppCacheHelper(profile), | 196 new BrowsingDataAppCacheHelper(profile), |
197 BrowsingDataIndexedDBHelper::Create(indexed_db_context), | 197 new BrowsingDataIndexedDBHelper(indexed_db_context), |
198 BrowsingDataFileSystemHelper::Create(file_system_context), | 198 BrowsingDataFileSystemHelper::Create(file_system_context), |
199 BrowsingDataQuotaHelper::Create(profile), | 199 BrowsingDataQuotaHelper::Create(profile), |
200 BrowsingDataServerBoundCertHelper::Create(profile), | 200 BrowsingDataServerBoundCertHelper::Create(profile), |
201 BrowsingDataFlashLSOHelper::Create(profile)); | 201 BrowsingDataFlashLSOHelper::Create(profile)); |
202 cookies_tree_model_.reset( | 202 cookies_tree_model_.reset( |
203 new CookiesTreeModel(container, | 203 new CookiesTreeModel(container, |
204 profile->GetExtensionSpecialStoragePolicy(), | 204 profile->GetExtensionSpecialStoragePolicy(), |
205 false)); | 205 false)); |
206 cookies_tree_model_->AddCookiesTreeObserver(this); | 206 cookies_tree_model_->AddCookiesTreeObserver(this); |
207 } | 207 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
263 } | 263 } |
264 | 264 |
265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
266 cookies_tree_model_.reset(); | 266 cookies_tree_model_.reset(); |
267 | 267 |
268 EnsureCookiesTreeModelCreated(); | 268 EnsureCookiesTreeModelCreated(); |
269 } | 269 } |
270 | 270 |
271 } // namespace options | 271 } // namespace options |
OLD | NEW |