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/url_request/url_fetcher_core.h" | 5 #include "net/url_request/url_fetcher_core.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util_proxy.h" | 8 #include "base/files/file_util_proxy.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
14 #include "base/tracked_objects.h" | 14 #include "base/tracked_objects.h" |
15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
16 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/upload_bytes_element_reader.h" | 18 #include "net/base/upload_bytes_element_reader.h" |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 } | 1046 } |
1047 | 1047 |
1048 void URLFetcherCore::InformDelegateDownloadDataInDelegateThread( | 1048 void URLFetcherCore::InformDelegateDownloadDataInDelegateThread( |
1049 scoped_ptr<std::string> download_data) { | 1049 scoped_ptr<std::string> download_data) { |
1050 DCHECK(delegate_task_runner_->BelongsToCurrentThread()); | 1050 DCHECK(delegate_task_runner_->BelongsToCurrentThread()); |
1051 if (delegate_) | 1051 if (delegate_) |
1052 delegate_->OnURLFetchDownloadData(fetcher_, download_data.Pass()); | 1052 delegate_->OnURLFetchDownloadData(fetcher_, download_data.Pass()); |
1053 } | 1053 } |
1054 | 1054 |
1055 } // namespace net | 1055 } // namespace net |
OLD | NEW |