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

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

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 | 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 base::FilePath path = in_memory ? base::FilePath() : partition_path; 225 base::FilePath path = in_memory ? base::FilePath() : partition_path;
226 scoped_refptr<DOMStorageContextImpl> dom_storage_context = 226 scoped_refptr<DOMStorageContextImpl> dom_storage_context =
227 new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy()); 227 new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy());
228 228
229 // BrowserMainLoop may not be initialized in unit tests. Tests will 229 // BrowserMainLoop may not be initialized in unit tests. Tests will
230 // need to inject their own task runner into the IndexedDBContext. 230 // need to inject their own task runner into the IndexedDBContext.
231 base::SequencedTaskRunner* idb_task_runner = 231 base::SequencedTaskRunner* idb_task_runner =
232 BrowserThread::CurrentlyOn(BrowserThread::UI) && 232 BrowserThread::CurrentlyOn(BrowserThread::UI) &&
233 BrowserMainLoop::GetInstance() 233 BrowserMainLoop::GetInstance()
234 ? BrowserMainLoop::GetInstance()->indexed_db_thread()-> 234 ? BrowserMainLoop::GetInstance()->indexed_db_thread()
235 message_loop_proxy() 235 ->message_loop_proxy().get()
236 : NULL; 236 : NULL;
237 scoped_refptr<IndexedDBContextImpl> indexed_db_context = 237 scoped_refptr<IndexedDBContextImpl> indexed_db_context =
238 new IndexedDBContextImpl(path, 238 new IndexedDBContextImpl(path,
239 context->GetSpecialStoragePolicy(), 239 context->GetSpecialStoragePolicy(),
240 quota_manager->proxy(), 240 quota_manager->proxy(),
241 idb_task_runner); 241 idb_task_runner);
242 242
243 scoped_refptr<ChromeAppCacheService> appcache_service = 243 scoped_refptr<ChromeAppCacheService> appcache_service =
244 new ChromeAppCacheService(quota_manager->proxy()); 244 new ChromeAppCacheService(quota_manager->proxy());
245 245
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 net::URLRequestContextGetter* url_request_context) { 348 net::URLRequestContextGetter* url_request_context) {
349 url_request_context_ = url_request_context; 349 url_request_context_ = url_request_context;
350 } 350 }
351 351
352 void StoragePartitionImpl::SetMediaURLRequestContext( 352 void StoragePartitionImpl::SetMediaURLRequestContext(
353 net::URLRequestContextGetter* media_url_request_context) { 353 net::URLRequestContextGetter* media_url_request_context) {
354 media_url_request_context_ = media_url_request_context; 354 media_url_request_context_ = media_url_request_context;
355 } 355 }
356 356
357 } // namespace content 357 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698