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

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

Issue 14265022: [Quota][FileAPI] Add quota policy to FileSystemOperationContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add special storage policy Created 7 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 "webkit/fileapi/file_system_context.h" 5 #include "webkit/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 "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 ScopedVector<FileSystemMountPointProvider> additional_providers, 64 ScopedVector<FileSystemMountPointProvider> additional_providers,
65 const base::FilePath& partition_path, 65 const base::FilePath& partition_path,
66 const FileSystemOptions& options) 66 const FileSystemOptions& options)
67 : task_runners_(task_runners.Pass()), 67 : task_runners_(task_runners.Pass()),
68 quota_manager_proxy_(quota_manager_proxy), 68 quota_manager_proxy_(quota_manager_proxy),
69 sandbox_provider_( 69 sandbox_provider_(
70 new SandboxMountPointProvider( 70 new SandboxMountPointProvider(
71 quota_manager_proxy, 71 quota_manager_proxy,
72 task_runners_->file_task_runner(), 72 task_runners_->file_task_runner(),
73 partition_path, 73 partition_path,
74 options)), 74 options,
75 special_storage_policy)),
75 isolated_provider_(new IsolatedMountPointProvider()), 76 isolated_provider_(new IsolatedMountPointProvider()),
76 additional_providers_(additional_providers.Pass()), 77 additional_providers_(additional_providers.Pass()),
77 external_mount_points_(external_mount_points), 78 external_mount_points_(external_mount_points),
78 partition_path_(partition_path) { 79 partition_path_(partition_path) {
79 DCHECK(task_runners_.get()); 80 DCHECK(task_runners_.get());
80 81
81 if (quota_manager_proxy) { 82 if (quota_manager_proxy) {
82 quota_manager_proxy->RegisterClient(CreateQuotaClient( 83 quota_manager_proxy->RegisterClient(CreateQuotaClient(
83 this, options.is_incognito())); 84 this, options.is_incognito()));
84 } 85 }
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 FileSystemType type = static_cast<FileSystemType>(t); 412 FileSystemType type = static_cast<FileSystemType>(t);
412 if (provider->CanHandleType(type)) { 413 if (provider->CanHandleType(type)) {
413 const bool inserted = provider_map_.insert( 414 const bool inserted = provider_map_.insert(
414 std::make_pair(type, provider)).second; 415 std::make_pair(type, provider)).second;
415 DCHECK(inserted); 416 DCHECK(inserted);
416 } 417 }
417 } 418 }
418 } 419 }
419 420
420 } // namespace fileapi 421 } // namespace fileapi
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | webkit/fileapi/file_system_operation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698