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

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: Rebase 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(),
215 quota_manager->proxy()); 214 quota_manager->proxy());
216 215
217 scoped_refptr<webkit_database::DatabaseTracker> database_tracker = 216 scoped_refptr<webkit_database::DatabaseTracker> database_tracker =
218 new webkit_database::DatabaseTracker( 217 new webkit_database::DatabaseTracker(
219 partition_path, 218 partition_path,
220 in_memory, 219 in_memory,
221 context->GetSpecialStoragePolicy(), 220 context->GetSpecialStoragePolicy(),
222 quota_manager->proxy(), 221 quota_manager->proxy(),
223 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE) 222 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)
224 .get()); 223 .get());
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 net::URLRequestContextGetter* url_request_context) { 356 net::URLRequestContextGetter* url_request_context) {
358 url_request_context_ = url_request_context; 357 url_request_context_ = url_request_context;
359 } 358 }
360 359
361 void StoragePartitionImpl::SetMediaURLRequestContext( 360 void StoragePartitionImpl::SetMediaURLRequestContext(
362 net::URLRequestContextGetter* media_url_request_context) { 361 net::URLRequestContextGetter* media_url_request_context) {
363 media_url_request_context_ = media_url_request_context; 362 media_url_request_context_ = media_url_request_context;
364 } 363 }
365 364
366 } // namespace content 365 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698