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

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 base::FilePath partition_path = 435 base::FilePath partition_path =
436 context->GetPath().Append(relative_partition_path); 436 context->GetPath().Append(relative_partition_path);
437 437
438 // All of the clients have to be created and registered with the 438 // All of the clients have to be created and registered with the
439 // QuotaManager prior to the QuotaManger being used. We do them 439 // QuotaManager prior to the QuotaManger being used. We do them
440 // all together here prior to handing out a reference to anything 440 // all together here prior to handing out a reference to anything
441 // that utilizes the QuotaManager. 441 // that utilizes the QuotaManager.
442 scoped_refptr<storage::QuotaManager> quota_manager = 442 scoped_refptr<storage::QuotaManager> quota_manager =
443 new storage::QuotaManager( 443 new storage::QuotaManager(
444 in_memory, 444 in_memory, partition_path,
445 partition_path, 445 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO).get(),
446 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(), 446 BrowserThread::GetTaskRunnerForThread(BrowserThread::DB).get(),
447 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get(),
448 context->GetSpecialStoragePolicy()); 447 context->GetSpecialStoragePolicy());
449 448
450 // Each consumer is responsible for registering its QuotaClient during 449 // Each consumer is responsible for registering its QuotaClient during
451 // its construction. 450 // its construction.
452 scoped_refptr<storage::FileSystemContext> filesystem_context = 451 scoped_refptr<storage::FileSystemContext> filesystem_context =
453 CreateFileSystemContext( 452 CreateFileSystemContext(
454 context, partition_path, in_memory, quota_manager->proxy()); 453 context, partition_path, in_memory, quota_manager->proxy());
455 454
456 scoped_refptr<storage::DatabaseTracker> database_tracker = 455 scoped_refptr<storage::DatabaseTracker> database_tracker =
457 new storage::DatabaseTracker(partition_path, 456 new storage::DatabaseTracker(
458 in_memory, 457 partition_path, in_memory, context->GetSpecialStoragePolicy(),
459 context->GetSpecialStoragePolicy(), 458 quota_manager->proxy(),
460 quota_manager->proxy(), 459 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE).get());
461 BrowserThread::GetMessageLoopProxyForThread(
462 BrowserThread::FILE).get());
463 460
464 scoped_refptr<DOMStorageContextWrapper> dom_storage_context = 461 scoped_refptr<DOMStorageContextWrapper> dom_storage_context =
465 new DOMStorageContextWrapper( 462 new DOMStorageContextWrapper(
466 BrowserContext::GetShellConnectorFor(context), 463 BrowserContext::GetShellConnectorFor(context),
467 in_memory ? base::FilePath() : context->GetPath(), 464 in_memory ? base::FilePath() : context->GetPath(),
468 relative_partition_path, context->GetSpecialStoragePolicy()); 465 relative_partition_path, context->GetSpecialStoragePolicy());
469 466
470 // BrowserMainLoop may not be initialized in unit tests. Tests will 467 // BrowserMainLoop may not be initialized in unit tests. Tests will
471 // need to inject their own task runner into the IndexedDBContext. 468 // need to inject their own task runner into the IndexedDBContext.
472 base::SequencedTaskRunner* idb_task_runner = 469 base::SequencedTaskRunner* idb_task_runner =
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 net::URLRequestContextGetter* url_request_context) { 915 net::URLRequestContextGetter* url_request_context) {
919 url_request_context_ = url_request_context; 916 url_request_context_ = url_request_context;
920 } 917 }
921 918
922 void StoragePartitionImpl::SetMediaURLRequestContext( 919 void StoragePartitionImpl::SetMediaURLRequestContext(
923 net::URLRequestContextGetter* media_url_request_context) { 920 net::URLRequestContextGetter* media_url_request_context) {
924 media_url_request_context_ = media_url_request_context; 921 media_url_request_context_ = media_url_request_context;
925 } 922 }
926 923
927 } // namespace content 924 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_browsertest.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698