OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/arc/fileapi/arc_content_file_system_file_strea
m_reader.h" | 5 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_strea
m_reader.h" |
6 | 6 |
7 #include <sys/types.h> | 7 #include <sys/types.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
11 #include "base/threading/sequenced_worker_pool.h" | |
12 #include "base/threading/thread_restrictions.h" | 11 #include "base/threading/thread_restrictions.h" |
13 #include "chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_u
til.h" | 12 #include "chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_u
til.h" |
14 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
15 #include "mojo/edk/embedder/embedder.h" | 14 #include "mojo/edk/embedder/embedder.h" |
16 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
17 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
18 | 17 |
19 namespace arc { | 18 namespace arc { |
20 | 19 |
21 namespace { | 20 namespace { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 callback.Run(net::ERR_FAILED); | 203 callback.Run(net::ERR_FAILED); |
205 return; | 204 return; |
206 } | 205 } |
207 DCHECK_GE(num_bytes_to_consume, read_result); | 206 DCHECK_GE(num_bytes_to_consume, read_result); |
208 num_bytes_to_consume -= read_result; | 207 num_bytes_to_consume -= read_result; |
209 ConsumeFileContents(buf, buffer_length, callback, temporary_buffer, | 208 ConsumeFileContents(buf, buffer_length, callback, temporary_buffer, |
210 num_bytes_to_consume); | 209 num_bytes_to_consume); |
211 } | 210 } |
212 | 211 |
213 } // namespace arc | 212 } // namespace arc |
OLD | NEW |