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

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

Issue 18344013: fileapi: Rename FileSystemMountProvider to FileSystemBackend (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 "webkit/browser/fileapi/file_system_quota_client.h" 5 #include "webkit/browser/fileapi/file_system_quota_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void DidGetOrigins( 61 void DidGetOrigins(
62 const quota::QuotaClient::GetOriginsCallback& callback, 62 const quota::QuotaClient::GetOriginsCallback& callback,
63 std::set<GURL>* origins_ptr) { 63 std::set<GURL>* origins_ptr) {
64 callback.Run(*origins_ptr); 64 callback.Run(*origins_ptr);
65 } 65 }
66 66
67 quota::QuotaStatusCode DeleteOriginOnFileThread( 67 quota::QuotaStatusCode DeleteOriginOnFileThread(
68 FileSystemContext* context, 68 FileSystemContext* context,
69 const GURL& origin, 69 const GURL& origin,
70 FileSystemType type) { 70 FileSystemType type) {
71 FileSystemMountPointProvider* provider = context->GetMountPointProvider(type); 71 FileSystemBackend* provider = context->GetMountPointProvider(type);
72 if (!provider || !provider->GetQuotaUtil()) 72 if (!provider || !provider->GetQuotaUtil())
73 return quota::kQuotaErrorNotSupported; 73 return quota::kQuotaErrorNotSupported;
74 base::PlatformFileError result = 74 base::PlatformFileError result =
75 provider->GetQuotaUtil()->DeleteOriginDataOnFileThread( 75 provider->GetQuotaUtil()->DeleteOriginDataOnFileThread(
76 context, context->quota_manager_proxy(), origin, type); 76 context, context->quota_manager_proxy(), origin, type);
77 if (result == base::PLATFORM_FILE_OK) 77 if (result == base::PLATFORM_FILE_OK)
78 return quota::kQuotaStatusOk; 78 return quota::kQuotaStatusOk;
79 return quota::kQuotaErrorInvalidModification; 79 return quota::kQuotaErrorInvalidModification;
80 } 80 }
81 81
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 origin, 196 origin,
197 fs_type), 197 fs_type),
198 callback); 198 callback);
199 } 199 }
200 200
201 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { 201 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const {
202 return file_system_context_->task_runners()->file_task_runner(); 202 return file_system_context_->task_runners()->file_task_runner();
203 } 203 }
204 204
205 } // namespace fileapi 205 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698