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

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

Issue 541363002: Support StreamCopyOrMoveImpl in sandbox. (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/file_system_operation_impl_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 "storage/browser/fileapi/sandbox_file_system_backend.h" 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util.h" 8 #include "base/files/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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return FileSystemOperation::Create(url, context, operation_context.Pass()); 121 return FileSystemOperation::Create(url, context, operation_context.Pass());
122 } 122 }
123 123
124 bool SandboxFileSystemBackend::SupportsStreaming( 124 bool SandboxFileSystemBackend::SupportsStreaming(
125 const storage::FileSystemURL& url) const { 125 const storage::FileSystemURL& url) const {
126 return false; 126 return false;
127 } 127 }
128 128
129 bool SandboxFileSystemBackend::HasInplaceCopyImplementation( 129 bool SandboxFileSystemBackend::HasInplaceCopyImplementation(
130 storage::FileSystemType type) const { 130 storage::FileSystemType type) const {
131 return true; 131 return false;
132 } 132 }
133 133
134 scoped_ptr<storage::FileStreamReader> 134 scoped_ptr<storage::FileStreamReader>
135 SandboxFileSystemBackend::CreateFileStreamReader( 135 SandboxFileSystemBackend::CreateFileStreamReader(
136 const FileSystemURL& url, 136 const FileSystemURL& url,
137 int64 offset, 137 int64 offset,
138 const base::Time& expected_modification_time, 138 const base::Time& expected_modification_time,
139 FileSystemContext* context) const { 139 FileSystemContext* context) const {
140 DCHECK(CanHandleType(url.type())); 140 DCHECK(CanHandleType(url.type()));
141 DCHECK(delegate_); 141 DCHECK(delegate_);
(...skipping 15 matching lines...) Expand all
157 return delegate_; 157 return delegate_;
158 } 158 }
159 159
160 SandboxFileSystemBackendDelegate::OriginEnumerator* 160 SandboxFileSystemBackendDelegate::OriginEnumerator*
161 SandboxFileSystemBackend::CreateOriginEnumerator() { 161 SandboxFileSystemBackend::CreateOriginEnumerator() {
162 DCHECK(delegate_); 162 DCHECK(delegate_);
163 return delegate_->CreateOriginEnumerator(); 163 return delegate_->CreateOriginEnumerator();
164 } 164 }
165 165
166 } // namespace storage 166 } // namespace storage
OLDNEW
« no previous file with comments | « content/browser/fileapi/file_system_operation_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698