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

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

Issue 238043002: Teach EmbeddedWorkerInstance to create a process when it needs one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle 2 places where context_ could be NULL. Created 6 years, 7 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 | Annotate | Revision Log
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 "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/browser_main_loop.h" 9 #include "content/browser/browser_main_loop.h"
10 #include "content/browser/fileapi/browser_file_system_helper.h" 10 #include "content/browser/fileapi/browser_file_system_helper.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 ? BrowserMainLoop::GetInstance()->indexed_db_thread() 409 ? BrowserMainLoop::GetInstance()->indexed_db_thread()
410 ->message_loop_proxy().get() 410 ->message_loop_proxy().get()
411 : NULL; 411 : NULL;
412 scoped_refptr<IndexedDBContextImpl> indexed_db_context = 412 scoped_refptr<IndexedDBContextImpl> indexed_db_context =
413 new IndexedDBContextImpl(path, 413 new IndexedDBContextImpl(path,
414 context->GetSpecialStoragePolicy(), 414 context->GetSpecialStoragePolicy(),
415 quota_manager->proxy(), 415 quota_manager->proxy(),
416 idb_task_runner); 416 idb_task_runner);
417 417
418 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context = 418 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context =
419 new ServiceWorkerContextWrapper(); 419 new ServiceWorkerContextWrapper(context);
420 service_worker_context->Init(path, quota_manager->proxy()); 420 service_worker_context->Init(path, quota_manager->proxy());
421 421
422 scoped_refptr<ChromeAppCacheService> appcache_service = 422 scoped_refptr<ChromeAppCacheService> appcache_service =
423 new ChromeAppCacheService(quota_manager->proxy()); 423 new ChromeAppCacheService(quota_manager->proxy());
424 424
425 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store( 425 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store(
426 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy())); 426 new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy()));
427 427
428 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy( 428 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy(
429 context->GetSpecialStoragePolicy()); 429 context->GetSpecialStoragePolicy());
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 net::URLRequestContextGetter* url_request_context) { 771 net::URLRequestContextGetter* url_request_context) {
772 url_request_context_ = url_request_context; 772 url_request_context_ = url_request_context;
773 } 773 }
774 774
775 void StoragePartitionImpl::SetMediaURLRequestContext( 775 void StoragePartitionImpl::SetMediaURLRequestContext(
776 net::URLRequestContextGetter* media_url_request_context) { 776 net::URLRequestContextGetter* media_url_request_context) {
777 media_url_request_context_ = media_url_request_context; 777 media_url_request_context_ = media_url_request_context;
778 } 778 }
779 779
780 } // namespace content 780 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698