| 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/drive_file_stream_reader.h" | 5 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 | 9 |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/task/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "chrome/browser/chromeos/drive/drive.pb.h" | 13 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 14 #include "chrome/browser/chromeos/drive/file_reader.h" | 14 #include "chrome/browser/chromeos/drive/file_reader.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 15 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 16 #include "chrome/browser/google_apis/task_util.h" | 16 #include "chrome/browser/google_apis/task_util.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 20 | 20 |
| 21 using content::BrowserThread; | 21 using content::BrowserThread; |
| 22 | 22 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // Note: due to the same reason, LocalReaderProxy::OnCompleted may | 430 // Note: due to the same reason, LocalReaderProxy::OnCompleted may |
| 431 // or may not be called. This is timing issue, and it is difficult to avoid | 431 // or may not be called. This is timing issue, and it is difficult to avoid |
| 432 // unfortunately. | 432 // unfortunately. |
| 433 if (error != FILE_ERROR_OK) { | 433 if (error != FILE_ERROR_OK) { |
| 434 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>()); | 434 callback.Run(FileErrorToNetError(error), scoped_ptr<ResourceEntry>()); |
| 435 } | 435 } |
| 436 } | 436 } |
| 437 } | 437 } |
| 438 | 438 |
| 439 } // namespace drive | 439 } // namespace drive |
| OLD | NEW |