| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/preferences/website_preference_bridge.h" | 5 #include "chrome/browser/android/preferences/website_preference_bridge.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 new BrowsingDataAppCacheHelper(profile_), | 464 new BrowsingDataAppCacheHelper(profile_), |
| 465 new BrowsingDataIndexedDBHelper(indexed_db_context), | 465 new BrowsingDataIndexedDBHelper(indexed_db_context), |
| 466 BrowsingDataFileSystemHelper::Create(file_system_context), | 466 BrowsingDataFileSystemHelper::Create(file_system_context), |
| 467 BrowsingDataQuotaHelper::Create(profile_), | 467 BrowsingDataQuotaHelper::Create(profile_), |
| 468 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()), | 468 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()), |
| 469 new BrowsingDataServiceWorkerHelper(service_worker_context), | 469 new BrowsingDataServiceWorkerHelper(service_worker_context), |
| 470 new BrowsingDataCacheStorageHelper(cache_storage_context), | 470 new BrowsingDataCacheStorageHelper(cache_storage_context), |
| 471 NULL); | 471 NULL); |
| 472 | 472 |
| 473 cookies_tree_model_.reset(new CookiesTreeModel( | 473 cookies_tree_model_.reset(new CookiesTreeModel( |
| 474 container, profile_->GetExtensionSpecialStoragePolicy(), false)); | 474 container, profile_->GetExtensionSpecialStoragePolicy())); |
| 475 cookies_tree_model_->AddCookiesTreeObserver(this); | 475 cookies_tree_model_->AddCookiesTreeObserver(this); |
| 476 } | 476 } |
| 477 | 477 |
| 478 // TreeModelObserver: | 478 // TreeModelObserver: |
| 479 void TreeNodesAdded(ui::TreeModel* model, | 479 void TreeNodesAdded(ui::TreeModel* model, |
| 480 ui::TreeModelNode* parent, | 480 ui::TreeModelNode* parent, |
| 481 int start, | 481 int start, |
| 482 int count) override {} | 482 int count) override {} |
| 483 void TreeNodesRemoved(ui::TreeModel* model, | 483 void TreeNodesRemoved(ui::TreeModel* model, |
| 484 ui::TreeModelNode* parent, | 484 ui::TreeModelNode* parent, |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 GURL url(ConvertJavaStringToUTF8(env, jorigin)); | 718 GURL url(ConvertJavaStringToUTF8(env, jorigin)); |
| 719 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( | 719 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( |
| 720 new SiteDataDeleteHelper(profile, url)); | 720 new SiteDataDeleteHelper(profile, url)); |
| 721 site_data_deleter->Run(); | 721 site_data_deleter->Run(); |
| 722 } | 722 } |
| 723 | 723 |
| 724 // Register native methods | 724 // Register native methods |
| 725 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { | 725 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { |
| 726 return RegisterNativesImpl(env); | 726 return RegisterNativesImpl(env); |
| 727 } | 727 } |
| OLD | NEW |