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, |
446 path, | |
447 context->GetSpecialStoragePolicy()); | |
jam
2016/03/03 16:32:11
no need to pass in context and a parameter that co
| |
446 | 448 |
447 // BrowserMainLoop may not be initialized in unit tests. Tests will | 449 // BrowserMainLoop may not be initialized in unit tests. Tests will |
448 // need to inject their own task runner into the IndexedDBContext. | 450 // need to inject their own task runner into the IndexedDBContext. |
449 base::SequencedTaskRunner* idb_task_runner = | 451 base::SequencedTaskRunner* idb_task_runner = |
450 BrowserThread::CurrentlyOn(BrowserThread::UI) && | 452 BrowserThread::CurrentlyOn(BrowserThread::UI) && |
451 BrowserMainLoop::GetInstance() | 453 BrowserMainLoop::GetInstance() |
452 ? BrowserMainLoop::GetInstance() | 454 ? BrowserMainLoop::GetInstance() |
453 ->indexed_db_thread() | 455 ->indexed_db_thread() |
454 ->task_runner() | 456 ->task_runner() |
455 .get() | 457 .get() |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
917 net::URLRequestContextGetter* url_request_context) { | 919 net::URLRequestContextGetter* url_request_context) { |
918 url_request_context_ = url_request_context; | 920 url_request_context_ = url_request_context; |
919 } | 921 } |
920 | 922 |
921 void StoragePartitionImpl::SetMediaURLRequestContext( | 923 void StoragePartitionImpl::SetMediaURLRequestContext( |
922 net::URLRequestContextGetter* media_url_request_context) { | 924 net::URLRequestContextGetter* media_url_request_context) { |
923 media_url_request_context_ = media_url_request_context; | 925 media_url_request_context_ = media_url_request_context; |
924 } | 926 } |
925 | 927 |
926 } // namespace content | 928 } // namespace content |
OLD | NEW |