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/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop_proxy.h" | |
10 #include "base/profiler/scoped_tracker.h" | 9 #include "base/profiler/scoped_tracker.h" |
11 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
12 #include "base/task_runner_util.h" | 11 #include "base/task_runner_util.h" |
13 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
16 | 15 |
17 #if defined(OS_ANDROID) | 16 #if defined(OS_ANDROID) |
18 #include "base/android/content_uri_utils.h" | 17 #include "base/android/content_uri_utils.h" |
19 #endif | 18 #endif |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // should be reset before Close() because it shouldn't run if any async | 235 // should be reset before Close() because it shouldn't run if any async |
237 // operation is in progress. | 236 // operation is in progress. |
238 async_in_progress_ = false; | 237 async_in_progress_ = false; |
239 if (orphaned_) | 238 if (orphaned_) |
240 CloseAndDelete(); | 239 CloseAndDelete(); |
241 else | 240 else |
242 callback.Run(result.result); | 241 callback.Run(result.result); |
243 } | 242 } |
244 | 243 |
245 } // namespace net | 244 } // namespace net |
OLD | NEW |