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

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

Issue 522543002: Modify test case to support streaming operation in sandbox file system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « webkit/browser/fileapi/file_system_context.h ('k') | no next file » | 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 const UpdateObserverList* FileSystemContext::GetUpdateObservers( 293 const UpdateObserverList* FileSystemContext::GetUpdateObservers(
294 FileSystemType type) const { 294 FileSystemType type) const {
295 FileSystemBackend* backend = GetFileSystemBackend(type); 295 FileSystemBackend* backend = GetFileSystemBackend(type);
296 if (backend->GetQuotaUtil()) 296 if (backend->GetQuotaUtil())
297 return backend->GetQuotaUtil()->GetUpdateObservers(type); 297 return backend->GetQuotaUtil()->GetUpdateObservers(type);
298 return NULL; 298 return NULL;
299 } 299 }
300 300
301 const ChangeObserverList* FileSystemContext::GetChangeObservers(
302 FileSystemType type) const {
303 FileSystemBackend* backend = GetFileSystemBackend(type);
304 if (backend->GetQuotaUtil())
305 return backend->GetQuotaUtil()->GetChangeObservers(type);
306 return NULL;
307 }
308
301 const AccessObserverList* FileSystemContext::GetAccessObservers( 309 const AccessObserverList* FileSystemContext::GetAccessObservers(
302 FileSystemType type) const { 310 FileSystemType type) const {
303 FileSystemBackend* backend = GetFileSystemBackend(type); 311 FileSystemBackend* backend = GetFileSystemBackend(type);
304 if (backend->GetQuotaUtil()) 312 if (backend->GetQuotaUtil())
305 return backend->GetQuotaUtil()->GetAccessObservers(type); 313 return backend->GetQuotaUtil()->GetAccessObservers(type);
306 return NULL; 314 return NULL;
307 } 315 }
308 316
309 void FileSystemContext::GetFileSystemTypes( 317 void FileSystemContext::GetFileSystemTypes(
310 std::vector<FileSystemType>* types) const { 318 std::vector<FileSystemType>* types) const {
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } else if (parent != child) { 635 } else if (parent != child) {
628 bool result = parent.AppendRelativePath(child, &path); 636 bool result = parent.AppendRelativePath(child, &path);
629 DCHECK(result); 637 DCHECK(result);
630 } 638 }
631 639
632 operation_runner()->GetMetadata( 640 operation_runner()->GetMetadata(
633 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 641 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
634 } 642 }
635 643
636 } // namespace storage 644 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698