OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/drive/local_file_reader.h" | 5 #include "components/drive/local_file_reader.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
11 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 | 13 |
14 namespace drive { | 14 namespace drive { |
15 namespace util { | 15 namespace util { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 void LocalFileReader::DidSeek(const net::CompletionCallback& callback, | 61 void LocalFileReader::DidSeek(const net::CompletionCallback& callback, |
62 int64 offset, | 62 int64 offset, |
63 int64 error) { | 63 int64 error) { |
64 callback.Run(error == offset ? net::OK : net::ERR_FAILED); | 64 callback.Run(error == offset ? net::OK : net::ERR_FAILED); |
65 } | 65 } |
66 | 66 |
67 } // namespace util | 67 } // namespace util |
68 } // namespace drive | 68 } // namespace drive |
OLD | NEW |