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

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 633873002: Service Worker: Respect the "clear on exit" content setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contentsettings
Patch Set: just clear in dtor Created 6 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 (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 "content/browser/storage_partition_impl.h" 5 #include "content/browser/storage_partition_impl.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/browser_main_loop.h" 9 #include "content/browser/browser_main_loop.h"
10 #include "content/browser/fileapi/browser_file_system_helper.h" 10 #include "content/browser/fileapi/browser_file_system_helper.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 ->message_loop_proxy().get() 445 ->message_loop_proxy().get()
446 : NULL; 446 : NULL;
447 scoped_refptr<IndexedDBContextImpl> indexed_db_context = 447 scoped_refptr<IndexedDBContextImpl> indexed_db_context =
448 new IndexedDBContextImpl(path, 448 new IndexedDBContextImpl(path,
449 context->GetSpecialStoragePolicy(), 449 context->GetSpecialStoragePolicy(),
450 quota_manager->proxy(), 450 quota_manager->proxy(),
451 idb_task_runner); 451 idb_task_runner);
452 452
453 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context = 453 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context =
454 new ServiceWorkerContextWrapper(context); 454 new ServiceWorkerContextWrapper(context);
455 service_worker_context->Init(path, quota_manager->proxy()); 455 service_worker_context->Init(path,
456 quota_manager->proxy(),
457 context->GetSpecialStoragePolicy());
456 458
457 scoped_refptr<ChromeAppCacheService> appcache_service = 459 scoped_refptr<ChromeAppCacheService> appcache_service =
458 new ChromeAppCacheService(quota_manager->proxy()); 460 new ChromeAppCacheService(quota_manager->proxy());
459 461
460 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store( 462 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store(
461 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy())); 463 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy()));
462 464
463 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy( 465 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy(
464 context->GetSpecialStoragePolicy()); 466 context->GetSpecialStoragePolicy());
465 467
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 net::URLRequestContextGetter* url_request_context) { 822 net::URLRequestContextGetter* url_request_context) {
821 url_request_context_ = url_request_context; 823 url_request_context_ = url_request_context;
822 } 824 }
823 825
824 void StoragePartitionImpl::SetMediaURLRequestContext( 826 void StoragePartitionImpl::SetMediaURLRequestContext(
825 net::URLRequestContextGetter* media_url_request_context) { 827 net::URLRequestContextGetter* media_url_request_context) {
826 media_url_request_context_ = media_url_request_context; 828 media_url_request_context_ = media_url_request_context;
827 } 829 }
828 830
829 } // namespace content 831 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698