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

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

Issue 510323003: Revert of 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 | « content/browser/fileapi/obfuscated_file_util_unittest.cc ('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/sandbox_file_system_backend.h" 5 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return FileSystemOperation::Create(url, context, operation_context.Pass()); 116 return FileSystemOperation::Create(url, context, operation_context.Pass());
117 } 117 }
118 118
119 bool SandboxFileSystemBackend::SupportsStreaming( 119 bool SandboxFileSystemBackend::SupportsStreaming(
120 const storage::FileSystemURL& url) const { 120 const storage::FileSystemURL& url) const {
121 return false; 121 return false;
122 } 122 }
123 123
124 bool SandboxFileSystemBackend::HasInplaceCopyImplementation( 124 bool SandboxFileSystemBackend::HasInplaceCopyImplementation(
125 storage::FileSystemType type) const { 125 storage::FileSystemType type) const {
126 return false; 126 return true;
127 } 127 }
128 128
129 scoped_ptr<storage::FileStreamReader> 129 scoped_ptr<storage::FileStreamReader>
130 SandboxFileSystemBackend::CreateFileStreamReader( 130 SandboxFileSystemBackend::CreateFileStreamReader(
131 const FileSystemURL& url, 131 const FileSystemURL& url,
132 int64 offset, 132 int64 offset,
133 const base::Time& expected_modification_time, 133 const base::Time& expected_modification_time,
134 FileSystemContext* context) const { 134 FileSystemContext* context) const {
135 DCHECK(CanHandleType(url.type())); 135 DCHECK(CanHandleType(url.type()));
136 DCHECK(delegate_); 136 DCHECK(delegate_);
(...skipping 15 matching lines...) Expand all
152 return delegate_; 152 return delegate_;
153 } 153 }
154 154
155 SandboxFileSystemBackendDelegate::OriginEnumerator* 155 SandboxFileSystemBackendDelegate::OriginEnumerator*
156 SandboxFileSystemBackend::CreateOriginEnumerator() { 156 SandboxFileSystemBackend::CreateOriginEnumerator() {
157 DCHECK(delegate_); 157 DCHECK(delegate_);
158 return delegate_->CreateOriginEnumerator(); 158 return delegate_->CreateOriginEnumerator();
159 } 159 }
160 160
161 } // namespace storage 161 } // namespace storage
OLDNEW
« no previous file with comments | « content/browser/fileapi/obfuscated_file_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698