| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/base/file_stream_context.h" | 5 #include "net/base/file_stream_context.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
| 10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
| 11 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
| 12 #include "net/base/file_stream_net_log_parameters.h" | 12 #include "net/base/file_stream_net_log_parameters.h" |
| 13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 void CallInt64ToInt(const net::CompletionCallback& callback, int64 result) { | 17 void CallInt64ToInt(const net::CompletionCallback& callback, int64 result) { |
| 18 callback.Run(static_cast<int>(result)); | 18 callback.Run(static_cast<int>(result)); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // operation is in progress. | 253 // operation is in progress. |
| 254 async_in_progress_ = false; | 254 async_in_progress_ = false; |
| 255 if (orphaned_) | 255 if (orphaned_) |
| 256 CloseAndDelete(); | 256 CloseAndDelete(); |
| 257 else | 257 else |
| 258 callback.Run(result); | 258 callback.Run(result); |
| 259 } | 259 } |
| 260 | 260 |
| 261 } // namespace net | 261 } // namespace net |
| 262 | 262 |
| OLD | NEW |