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

Side by Side Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 2359393002: Adds media license nodes to cookie tree model and cookies view. (Closed)
Patch Set: rebase Created 4 years, 2 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
OLDNEW
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 content::ServiceWorkerContext* service_worker_context = 524 content::ServiceWorkerContext* service_worker_context =
525 storage_partition->GetServiceWorkerContext(); 525 storage_partition->GetServiceWorkerContext();
526 content::CacheStorageContext* cache_storage_context = 526 content::CacheStorageContext* cache_storage_context =
527 storage_partition->GetCacheStorageContext(); 527 storage_partition->GetCacheStorageContext();
528 storage::FileSystemContext* file_system_context = 528 storage::FileSystemContext* file_system_context =
529 storage_partition->GetFileSystemContext(); 529 storage_partition->GetFileSystemContext();
530 LocalDataContainer* container = new LocalDataContainer( 530 LocalDataContainer* container = new LocalDataContainer(
531 new BrowsingDataCookieHelper(profile_->GetRequestContext()), 531 new BrowsingDataCookieHelper(profile_->GetRequestContext()),
532 new BrowsingDataDatabaseHelper(profile_), 532 new BrowsingDataDatabaseHelper(profile_),
533 new BrowsingDataLocalStorageHelper(profile_), 533 new BrowsingDataLocalStorageHelper(profile_),
534 NULL, 534 nullptr,
535 new BrowsingDataAppCacheHelper(profile_), 535 new BrowsingDataAppCacheHelper(profile_),
536 new BrowsingDataIndexedDBHelper(indexed_db_context), 536 new BrowsingDataIndexedDBHelper(indexed_db_context),
537 BrowsingDataFileSystemHelper::Create(file_system_context), 537 BrowsingDataFileSystemHelper::Create(file_system_context),
538 BrowsingDataQuotaHelper::Create(profile_), 538 BrowsingDataQuotaHelper::Create(profile_),
539 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()), 539 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()),
540 new BrowsingDataServiceWorkerHelper(service_worker_context), 540 new BrowsingDataServiceWorkerHelper(service_worker_context),
541 new BrowsingDataCacheStorageHelper(cache_storage_context), 541 new BrowsingDataCacheStorageHelper(cache_storage_context),
542 NULL); 542 nullptr,
543 nullptr);
543 544
544 cookies_tree_model_.reset(new CookiesTreeModel( 545 cookies_tree_model_.reset(new CookiesTreeModel(
545 container, profile_->GetExtensionSpecialStoragePolicy())); 546 container, profile_->GetExtensionSpecialStoragePolicy()));
546 cookies_tree_model_->AddCookiesTreeObserver(this); 547 cookies_tree_model_->AddCookiesTreeObserver(this);
547 } 548 }
548 549
549 // TreeModelObserver: 550 // TreeModelObserver:
550 void TreeNodesAdded(ui::TreeModel* model, 551 void TreeNodesAdded(ui::TreeModel* model,
551 ui::TreeModelNode* parent, 552 ui::TreeModelNode* parent,
552 int start, 553 int start,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 GURL url(ConvertJavaStringToUTF8(env, jorigin)); 793 GURL url(ConvertJavaStringToUTF8(env, jorigin));
793 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( 794 scoped_refptr<SiteDataDeleteHelper> site_data_deleter(
794 new SiteDataDeleteHelper(profile, url)); 795 new SiteDataDeleteHelper(profile, url));
795 site_data_deleter->Run(); 796 site_data_deleter->Run();
796 } 797 }
797 798
798 // Register native methods 799 // Register native methods
799 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { 800 bool RegisterWebsitePreferenceBridge(JNIEnv* env) {
800 return RegisterNativesImpl(env); 801 return RegisterNativesImpl(env);
801 } 802 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/browsing_data/browsing_data_media_license_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698