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

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: sync 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(
456 path, quota_manager->proxy(), context->GetSpecialStoragePolicy());
456 457
457 scoped_refptr<ChromeAppCacheService> appcache_service = 458 scoped_refptr<ChromeAppCacheService> appcache_service =
458 new ChromeAppCacheService(quota_manager->proxy()); 459 new ChromeAppCacheService(quota_manager->proxy());
459 460
460 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store( 461 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store(
461 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy())); 462 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy()));
462 463
463 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy( 464 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy(
464 context->GetSpecialStoragePolicy()); 465 context->GetSpecialStoragePolicy());
465 466
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 net::URLRequestContextGetter* url_request_context) { 821 net::URLRequestContextGetter* url_request_context) {
821 url_request_context_ = url_request_context; 822 url_request_context_ = url_request_context;
822 } 823 }
823 824
824 void StoragePartitionImpl::SetMediaURLRequestContext( 825 void StoragePartitionImpl::SetMediaURLRequestContext(
825 net::URLRequestContextGetter* media_url_request_context) { 826 net::URLRequestContextGetter* media_url_request_context) {
826 media_url_request_context_ = media_url_request_context; 827 media_url_request_context_ = media_url_request_context;
827 } 828 }
828 829
829 } // namespace content 830 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_storage_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698