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/blob/local_file_stream_reader.h" | 5 #include "storage/browser/fileapi/local_file_stream_reader.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/files/file_util_proxy.h" | 8 #include "base/files/file_util_proxy.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/profiler/scoped_tracker.h" | 11 #include "base/profiler/scoped_tracker.h" |
12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
13 #include "net/base/file_stream.h" | 13 #include "net/base/file_stream.h" |
14 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 return; | 166 return; |
167 } | 167 } |
168 if (!VerifySnapshotTime(expected_modification_time_, file_info)) { | 168 if (!VerifySnapshotTime(expected_modification_time_, file_info)) { |
169 callback.Run(net::ERR_UPLOAD_FILE_CHANGED); | 169 callback.Run(net::ERR_UPLOAD_FILE_CHANGED); |
170 return; | 170 return; |
171 } | 171 } |
172 callback.Run(file_info.size); | 172 callback.Run(file_info.size); |
173 } | 173 } |
174 | 174 |
175 } // namespace storage | 175 } // namespace storage |
OLD | NEW |