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

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: nullptr 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 content::ServiceWorkerContext* service_worker_context = 523 content::ServiceWorkerContext* service_worker_context =
524 storage_partition->GetServiceWorkerContext(); 524 storage_partition->GetServiceWorkerContext();
525 content::CacheStorageContext* cache_storage_context = 525 content::CacheStorageContext* cache_storage_context =
526 storage_partition->GetCacheStorageContext(); 526 storage_partition->GetCacheStorageContext();
527 storage::FileSystemContext* file_system_context = 527 storage::FileSystemContext* file_system_context =
528 storage_partition->GetFileSystemContext(); 528 storage_partition->GetFileSystemContext();
529 LocalDataContainer* container = new LocalDataContainer( 529 LocalDataContainer* container = new LocalDataContainer(
530 new BrowsingDataCookieHelper(profile_->GetRequestContext()), 530 new BrowsingDataCookieHelper(profile_->GetRequestContext()),
531 new BrowsingDataDatabaseHelper(profile_), 531 new BrowsingDataDatabaseHelper(profile_),
532 new BrowsingDataLocalStorageHelper(profile_), 532 new BrowsingDataLocalStorageHelper(profile_),
533 NULL, 533 nullptr,
534 new BrowsingDataAppCacheHelper(profile_), 534 new BrowsingDataAppCacheHelper(profile_),
535 new BrowsingDataIndexedDBHelper(indexed_db_context), 535 new BrowsingDataIndexedDBHelper(indexed_db_context),
536 BrowsingDataFileSystemHelper::Create(file_system_context), 536 BrowsingDataFileSystemHelper::Create(file_system_context),
537 BrowsingDataQuotaHelper::Create(profile_), 537 BrowsingDataQuotaHelper::Create(profile_),
538 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()), 538 BrowsingDataChannelIDHelper::Create(profile_->GetRequestContext()),
539 new BrowsingDataServiceWorkerHelper(service_worker_context), 539 new BrowsingDataServiceWorkerHelper(service_worker_context),
540 new BrowsingDataCacheStorageHelper(cache_storage_context), 540 new BrowsingDataCacheStorageHelper(cache_storage_context),
541 NULL); 541 nullptr,
542 nullptr);
542 543
543 cookies_tree_model_.reset(new CookiesTreeModel( 544 cookies_tree_model_.reset(new CookiesTreeModel(
544 container, profile_->GetExtensionSpecialStoragePolicy())); 545 container, profile_->GetExtensionSpecialStoragePolicy()));
545 cookies_tree_model_->AddCookiesTreeObserver(this); 546 cookies_tree_model_->AddCookiesTreeObserver(this);
546 } 547 }
547 548
548 // TreeModelObserver: 549 // TreeModelObserver:
549 void TreeNodesAdded(ui::TreeModel* model, 550 void TreeNodesAdded(ui::TreeModel* model,
550 ui::TreeModelNode* parent, 551 ui::TreeModelNode* parent,
551 int start, 552 int start,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 GURL url(ConvertJavaStringToUTF8(env, jorigin)); 792 GURL url(ConvertJavaStringToUTF8(env, jorigin));
792 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( 793 scoped_refptr<SiteDataDeleteHelper> site_data_deleter(
793 new SiteDataDeleteHelper(profile, url)); 794 new SiteDataDeleteHelper(profile, url));
794 site_data_deleter->Run(); 795 site_data_deleter->Run();
795 } 796 }
796 797
797 // Register native methods 798 // Register native methods
798 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { 799 bool RegisterWebsitePreferenceBridge(JNIEnv* env) {
799 return RegisterNativesImpl(env); 800 return RegisterNativesImpl(env);
800 } 801 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698