| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 scoped_refptr<storage::DatabaseTracker> database_tracker = | 458 scoped_refptr<storage::DatabaseTracker> database_tracker = |
| 459 new storage::DatabaseTracker(partition_path, | 459 new storage::DatabaseTracker(partition_path, |
| 460 in_memory, | 460 in_memory, |
| 461 context->GetSpecialStoragePolicy(), | 461 context->GetSpecialStoragePolicy(), |
| 462 quota_manager->proxy(), | 462 quota_manager->proxy(), |
| 463 BrowserThread::GetMessageLoopProxyForThread( | 463 BrowserThread::GetMessageLoopProxyForThread( |
| 464 BrowserThread::FILE).get()); | 464 BrowserThread::FILE).get()); |
| 465 | 465 |
| 466 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = | 466 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = |
| 467 new DOMStorageContextWrapper( | 467 new DOMStorageContextWrapper( |
| 468 BrowserContext::GetMojoUserIdFor(context), | 468 BrowserContext::GetMojoConnectorFor(context), |
| 469 in_memory ? base::FilePath() : context->GetPath(), | 469 in_memory ? base::FilePath() : context->GetPath(), |
| 470 relative_partition_path, context->GetSpecialStoragePolicy()); | 470 relative_partition_path, context->GetSpecialStoragePolicy()); |
| 471 | 471 |
| 472 // BrowserMainLoop may not be initialized in unit tests. Tests will | 472 // BrowserMainLoop may not be initialized in unit tests. Tests will |
| 473 // need to inject their own task runner into the IndexedDBContext. | 473 // need to inject their own task runner into the IndexedDBContext. |
| 474 base::SequencedTaskRunner* idb_task_runner = | 474 base::SequencedTaskRunner* idb_task_runner = |
| 475 BrowserThread::CurrentlyOn(BrowserThread::UI) && | 475 BrowserThread::CurrentlyOn(BrowserThread::UI) && |
| 476 BrowserMainLoop::GetInstance() | 476 BrowserMainLoop::GetInstance() |
| 477 ? BrowserMainLoop::GetInstance() | 477 ? BrowserMainLoop::GetInstance() |
| 478 ->indexed_db_thread() | 478 ->indexed_db_thread() |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 net::URLRequestContextGetter* url_request_context) { | 929 net::URLRequestContextGetter* url_request_context) { |
| 930 url_request_context_ = url_request_context; | 930 url_request_context_ = url_request_context; |
| 931 } | 931 } |
| 932 | 932 |
| 933 void StoragePartitionImpl::SetMediaURLRequestContext( | 933 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 934 net::URLRequestContextGetter* media_url_request_context) { | 934 net::URLRequestContextGetter* media_url_request_context) { |
| 935 media_url_request_context_ = media_url_request_context; | 935 media_url_request_context_ = media_url_request_context; |
| 936 } | 936 } |
| 937 | 937 |
| 938 } // namespace content | 938 } // namespace content |
| OLD | NEW |