OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |