| 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/file_reader.h" | 5 #include "chrome/browser/chromeos/drive/file_reader.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "base/task/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 15 #include "base/task_runner_util.h" | 15 #include "base/task_runner_util.h" |
| 16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
| 17 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
| 18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
| 19 | 19 |
| 20 namespace drive { | 20 namespace drive { |
| 21 namespace util { | 21 namespace util { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 if (open_result == net::OK) { | 166 if (open_result == net::OK) { |
| 167 DCHECK_NE(base::kInvalidPlatformFileValue, *platform_file->ptr()); | 167 DCHECK_NE(base::kInvalidPlatformFileValue, *platform_file->ptr()); |
| 168 platform_file_ = platform_file->release(); | 168 platform_file_ = platform_file->release(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 callback.Run(open_result); | 171 callback.Run(open_result); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace util | 174 } // namespace util |
| 175 } // namespace drive | 175 } // namespace drive |
| OLD | NEW |