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.h" | 5 #include "net/base/file_stream.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_context.h" | 12 #include "net/base/file_stream_context.h" |
13 #include "net/base/file_stream_net_log_parameters.h" | 13 #include "net/base/file_stream_net_log_parameters.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 FileStream::FileStream(NetLog* net_log) | 18 FileStream::FileStream(NetLog* net_log) |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 owner_bound_net_log.AddEvent(NetLog::TYPE_FILE_STREAM_SOURCE, | 253 owner_bound_net_log.AddEvent(NetLog::TYPE_FILE_STREAM_SOURCE, |
254 bound_net_log_.source().ToEventParametersCallback()); | 254 bound_net_log_.source().ToEventParametersCallback()); |
255 } | 255 } |
256 | 256 |
257 base::PlatformFile FileStream::GetPlatformFileForTesting() { | 257 base::PlatformFile FileStream::GetPlatformFileForTesting() { |
258 return context_->file(); | 258 return context_->file(); |
259 } | 259 } |
260 | 260 |
261 } // namespace net | 261 } // namespace net |
OLD | NEW |