| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 storage_partition->GetFileSystemContext(); | 196 storage_partition->GetFileSystemContext(); |
| 197 LocalDataContainer* container = new LocalDataContainer( | 197 LocalDataContainer* container = new LocalDataContainer( |
| 198 new BrowsingDataCookieHelper(profile->GetRequestContext()), | 198 new BrowsingDataCookieHelper(profile->GetRequestContext()), |
| 199 new BrowsingDataDatabaseHelper(profile), | 199 new BrowsingDataDatabaseHelper(profile), |
| 200 new BrowsingDataLocalStorageHelper(profile), | 200 new BrowsingDataLocalStorageHelper(profile), |
| 201 NULL, | 201 NULL, |
| 202 new BrowsingDataAppCacheHelper(profile), | 202 new BrowsingDataAppCacheHelper(profile), |
| 203 new BrowsingDataIndexedDBHelper(indexed_db_context), | 203 new BrowsingDataIndexedDBHelper(indexed_db_context), |
| 204 BrowsingDataFileSystemHelper::Create(file_system_context), | 204 BrowsingDataFileSystemHelper::Create(file_system_context), |
| 205 BrowsingDataQuotaHelper::Create(profile), | 205 BrowsingDataQuotaHelper::Create(profile), |
| 206 BrowsingDataChannelIDHelper::Create(profile), | 206 BrowsingDataChannelIDHelper::Create(profile->GetRequestContext()), |
| 207 new BrowsingDataServiceWorkerHelper(service_worker_context), | 207 new BrowsingDataServiceWorkerHelper(service_worker_context), |
| 208 BrowsingDataFlashLSOHelper::Create(profile)); | 208 BrowsingDataFlashLSOHelper::Create(profile)); |
| 209 cookies_tree_model_.reset( | 209 cookies_tree_model_.reset( |
| 210 new CookiesTreeModel(container, | 210 new CookiesTreeModel(container, |
| 211 profile->GetExtensionSpecialStoragePolicy(), | 211 profile->GetExtensionSpecialStoragePolicy(), |
| 212 false)); | 212 false)); |
| 213 cookies_tree_model_->AddCookiesTreeObserver(this); | 213 cookies_tree_model_->AddCookiesTreeObserver(this); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); | 269 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); |
| 270 } | 270 } |
| 271 | 271 |
| 272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { | 272 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { |
| 273 cookies_tree_model_.reset(); | 273 cookies_tree_model_.reset(); |
| 274 | 274 |
| 275 EnsureCookiesTreeModelCreated(); | 275 EnsureCookiesTreeModelCreated(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace options | 278 } // namespace options |
| OLD | NEW |