| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 context, partition_path, in_memory, quota_manager->proxy()); | 452 context, partition_path, in_memory, quota_manager->proxy()); |
| 453 | 453 |
| 454 scoped_refptr<storage::DatabaseTracker> database_tracker = | 454 scoped_refptr<storage::DatabaseTracker> database_tracker = |
| 455 new storage::DatabaseTracker( | 455 new storage::DatabaseTracker( |
| 456 partition_path, in_memory, context->GetSpecialStoragePolicy(), | 456 partition_path, in_memory, context->GetSpecialStoragePolicy(), |
| 457 quota_manager->proxy(), | 457 quota_manager->proxy(), |
| 458 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE).get()); | 458 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE).get()); |
| 459 | 459 |
| 460 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = | 460 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = |
| 461 new DOMStorageContextWrapper( | 461 new DOMStorageContextWrapper( |
| 462 BrowserContext::GetShellConnectorFor(context), | 462 BrowserContext::GetConnectorFor(context), |
| 463 in_memory ? base::FilePath() : context->GetPath(), | 463 in_memory ? base::FilePath() : context->GetPath(), |
| 464 relative_partition_path, context->GetSpecialStoragePolicy()); | 464 relative_partition_path, context->GetSpecialStoragePolicy()); |
| 465 | 465 |
| 466 // BrowserMainLoop may not be initialized in unit tests. Tests will | 466 // BrowserMainLoop may not be initialized in unit tests. Tests will |
| 467 // need to inject their own task runner into the IndexedDBContext. | 467 // need to inject their own task runner into the IndexedDBContext. |
| 468 base::SequencedTaskRunner* idb_task_runner = | 468 base::SequencedTaskRunner* idb_task_runner = |
| 469 BrowserThread::CurrentlyOn(BrowserThread::UI) && | 469 BrowserThread::CurrentlyOn(BrowserThread::UI) && |
| 470 BrowserMainLoop::GetInstance() | 470 BrowserMainLoop::GetInstance() |
| 471 ? BrowserMainLoop::GetInstance() | 471 ? BrowserMainLoop::GetInstance() |
| 472 ->indexed_db_thread() | 472 ->indexed_db_thread() |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 net::URLRequestContextGetter* url_request_context) { | 914 net::URLRequestContextGetter* url_request_context) { |
| 915 url_request_context_ = url_request_context; | 915 url_request_context_ = url_request_context; |
| 916 } | 916 } |
| 917 | 917 |
| 918 void StoragePartitionImpl::SetMediaURLRequestContext( | 918 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 919 net::URLRequestContextGetter* media_url_request_context) { | 919 net::URLRequestContextGetter* media_url_request_context) { |
| 920 media_url_request_context_ = media_url_request_context; | 920 media_url_request_context_ = media_url_request_context; |
| 921 } | 921 } |
| 922 | 922 |
| 923 } // namespace content | 923 } // namespace content |
| OLD | NEW |