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

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

Issue 491813002: 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, 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return FileSystemOperation::Create(url, context, operation_context.Pass()); 118 return FileSystemOperation::Create(url, context, operation_context.Pass());
119 } 119 }
120 120
121 bool SandboxFileSystemBackend::SupportsStreaming( 121 bool SandboxFileSystemBackend::SupportsStreaming(
122 const fileapi::FileSystemURL& url) const { 122 const fileapi::FileSystemURL& url) const {
123 return false; 123 return false;
124 } 124 }
125 125
126 bool SandboxFileSystemBackend::HasInplaceCopyImplementation( 126 bool SandboxFileSystemBackend::HasInplaceCopyImplementation(
127 fileapi::FileSystemType type) const { 127 fileapi::FileSystemType type) const {
128 return true; 128 return false;
129 } 129 }
130 130
131 scoped_ptr<webkit_blob::FileStreamReader> 131 scoped_ptr<webkit_blob::FileStreamReader>
132 SandboxFileSystemBackend::CreateFileStreamReader( 132 SandboxFileSystemBackend::CreateFileStreamReader(
133 const FileSystemURL& url, 133 const FileSystemURL& url,
134 int64 offset, 134 int64 offset,
135 const base::Time& expected_modification_time, 135 const base::Time& expected_modification_time,
136 FileSystemContext* context) const { 136 FileSystemContext* context) const {
137 DCHECK(CanHandleType(url.type())); 137 DCHECK(CanHandleType(url.type()));
138 DCHECK(delegate_); 138 DCHECK(delegate_);
(...skipping 15 matching lines...) Expand all
154 return delegate_; 154 return delegate_;
155 } 155 }
156 156
157 SandboxFileSystemBackendDelegate::OriginEnumerator* 157 SandboxFileSystemBackendDelegate::OriginEnumerator*
158 SandboxFileSystemBackend::CreateOriginEnumerator() { 158 SandboxFileSystemBackend::CreateOriginEnumerator() {
159 DCHECK(delegate_); 159 DCHECK(delegate_);
160 return delegate_->CreateOriginEnumerator(); 160 return delegate_->CreateOriginEnumerator();
161 } 161 }
162 162
163 } // namespace fileapi 163 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698