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

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

Issue 1871223003: Use ShellClientFactory interface to load mojo:profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/common/mojo/current_thread_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/common/mojo/current_thread_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698