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