OLD | NEW |
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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 scoped_refptr<storage::DatabaseTracker> database_tracker = | 435 scoped_refptr<storage::DatabaseTracker> database_tracker = |
436 new storage::DatabaseTracker(partition_path, | 436 new storage::DatabaseTracker(partition_path, |
437 in_memory, | 437 in_memory, |
438 context->GetSpecialStoragePolicy(), | 438 context->GetSpecialStoragePolicy(), |
439 quota_manager->proxy(), | 439 quota_manager->proxy(), |
440 BrowserThread::GetMessageLoopProxyForThread( | 440 BrowserThread::GetMessageLoopProxyForThread( |
441 BrowserThread::FILE).get()); | 441 BrowserThread::FILE).get()); |
442 | 442 |
443 base::FilePath path = in_memory ? base::FilePath() : partition_path; | 443 base::FilePath path = in_memory ? base::FilePath() : partition_path; |
444 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = | 444 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = |
445 new DOMStorageContextWrapper(path, context->GetSpecialStoragePolicy()); | 445 new DOMStorageContextWrapper(context, path); |
446 | 446 |
447 // BrowserMainLoop may not be initialized in unit tests. Tests will | 447 // BrowserMainLoop may not be initialized in unit tests. Tests will |
448 // need to inject their own task runner into the IndexedDBContext. | 448 // need to inject their own task runner into the IndexedDBContext. |
449 base::SequencedTaskRunner* idb_task_runner = | 449 base::SequencedTaskRunner* idb_task_runner = |
450 BrowserThread::CurrentlyOn(BrowserThread::UI) && | 450 BrowserThread::CurrentlyOn(BrowserThread::UI) && |
451 BrowserMainLoop::GetInstance() | 451 BrowserMainLoop::GetInstance() |
452 ? BrowserMainLoop::GetInstance() | 452 ? BrowserMainLoop::GetInstance() |
453 ->indexed_db_thread() | 453 ->indexed_db_thread() |
454 ->task_runner() | 454 ->task_runner() |
455 .get() | 455 .get() |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 net::URLRequestContextGetter* url_request_context) { | 916 net::URLRequestContextGetter* url_request_context) { |
917 url_request_context_ = url_request_context; | 917 url_request_context_ = url_request_context; |
918 } | 918 } |
919 | 919 |
920 void StoragePartitionImpl::SetMediaURLRequestContext( | 920 void StoragePartitionImpl::SetMediaURLRequestContext( |
921 net::URLRequestContextGetter* media_url_request_context) { | 921 net::URLRequestContextGetter* media_url_request_context) { |
922 media_url_request_context_ = media_url_request_context; | 922 media_url_request_context_ = media_url_request_context; |
923 } | 923 } |
924 | 924 |
925 } // namespace content | 925 } // namespace content |
OLD | NEW |