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

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

Issue 18667002: Pass BrowserContext to drive::MountPointProviderDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 scoped_refptr<quota::QuotaManager> quota_manager = new quota::QuotaManager( 202 scoped_refptr<quota::QuotaManager> quota_manager = new quota::QuotaManager(
203 in_memory, 203 in_memory,
204 partition_path, 204 partition_path,
205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(), 205 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(),
206 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get(), 206 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get(),
207 context->GetSpecialStoragePolicy()); 207 context->GetSpecialStoragePolicy());
208 208
209 // Each consumer is responsible for registering its QuotaClient during 209 // Each consumer is responsible for registering its QuotaClient during
210 // its construction. 210 // its construction.
211 scoped_refptr<fileapi::FileSystemContext> filesystem_context = 211 scoped_refptr<fileapi::FileSystemContext> filesystem_context =
212 CreateFileSystemContext(partition_path, in_memory, 212 CreateFileSystemContext(context,
213 BrowserContext::GetMountPoints(context), 213 partition_path, in_memory,
214 context->GetSpecialStoragePolicy(), 214 context->GetSpecialStoragePolicy(),
215 quota_manager->proxy()); 215 quota_manager->proxy());
216 216
217 scoped_refptr<webkit_database::DatabaseTracker> database_tracker = 217 scoped_refptr<webkit_database::DatabaseTracker> database_tracker =
218 new webkit_database::DatabaseTracker( 218 new webkit_database::DatabaseTracker(
219 partition_path, 219 partition_path,
220 in_memory, 220 in_memory,
221 context->GetSpecialStoragePolicy(), 221 context->GetSpecialStoragePolicy(),
222 quota_manager->proxy(), 222 quota_manager->proxy(),
223 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE) 223 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 net::URLRequestContextGetter* url_request_context) { 357 net::URLRequestContextGetter* url_request_context) {
358 url_request_context_ = url_request_context; 358 url_request_context_ = url_request_context;
359 } 359 }
360 360
361 void StoragePartitionImpl::SetMediaURLRequestContext( 361 void StoragePartitionImpl::SetMediaURLRequestContext(
362 net::URLRequestContextGetter* media_url_request_context) { 362 net::URLRequestContextGetter* media_url_request_context) {
363 media_url_request_context_ = media_url_request_context; 363 media_url_request_context_ = media_url_request_context;
364 } 364 }
365 365
366 } // namespace content 366 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698