Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | chrome/browser/chromeos/arc/process/arc_process_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698