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

Side by Side Diff: webkit/browser/fileapi/file_system_context.cc

Issue 21116008: FileAPI: Move FileSystemQuotaUtil related functions into SandboxContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years, 4 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
« no previous file with comments | « webkit/browser/fileapi/file_system_context.h ('k') | webkit/browser/fileapi/sandbox_context.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 "webkit/browser/fileapi/file_system_context.h" 5 #include "webkit/browser/fileapi/file_system_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 quota::QuotaManagerProxy* quota_manager_proxy, 106 quota::QuotaManagerProxy* quota_manager_proxy,
107 ScopedVector<FileSystemBackend> additional_backends, 107 ScopedVector<FileSystemBackend> additional_backends,
108 const base::FilePath& partition_path, 108 const base::FilePath& partition_path,
109 const FileSystemOptions& options) 109 const FileSystemOptions& options)
110 : task_runners_(task_runners.Pass()), 110 : task_runners_(task_runners.Pass()),
111 quota_manager_proxy_(quota_manager_proxy), 111 quota_manager_proxy_(quota_manager_proxy),
112 sandbox_context_(new SandboxContext( 112 sandbox_context_(new SandboxContext(
113 quota_manager_proxy, 113 quota_manager_proxy,
114 task_runners_->file_task_runner(), 114 task_runners_->file_task_runner(),
115 partition_path, 115 partition_path,
116 special_storage_policy)), 116 special_storage_policy,
117 options)),
117 sandbox_backend_(new SandboxFileSystemBackend( 118 sandbox_backend_(new SandboxFileSystemBackend(
118 sandbox_context_.get(), 119 sandbox_context_.get())),
119 options)),
120 isolated_backend_(new IsolatedFileSystemBackend()), 120 isolated_backend_(new IsolatedFileSystemBackend()),
121 additional_backends_(additional_backends.Pass()), 121 additional_backends_(additional_backends.Pass()),
122 external_mount_points_(external_mount_points), 122 external_mount_points_(external_mount_points),
123 partition_path_(partition_path), 123 partition_path_(partition_path),
124 operation_runner_(new FileSystemOperationRunner(this)) { 124 operation_runner_(new FileSystemOperationRunner(this)) {
125 DCHECK(task_runners_.get()); 125 DCHECK(task_runners_.get());
126 126
127 if (quota_manager_proxy) { 127 if (quota_manager_proxy) {
128 quota_manager_proxy->RegisterClient(CreateQuotaClient( 128 quota_manager_proxy->RegisterClient(CreateQuotaClient(
129 this, options.is_incognito())); 129 this, options.is_incognito()));
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 FileSystemType type = static_cast<FileSystemType>(t); 463 FileSystemType type = static_cast<FileSystemType>(t);
464 if (backend->CanHandleType(type)) { 464 if (backend->CanHandleType(type)) {
465 const bool inserted = backend_map_.insert( 465 const bool inserted = backend_map_.insert(
466 std::make_pair(type, backend)).second; 466 std::make_pair(type, backend)).second;
467 DCHECK(inserted); 467 DCHECK(inserted);
468 } 468 }
469 } 469 }
470 } 470 }
471 471
472 } // namespace fileapi 472 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_context.h ('k') | webkit/browser/fileapi/sandbox_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698