| 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_impl.h" | 5 #include "net/url_request/url_fetcher_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" | |
| 9 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
| 10 #include "net/base/upload_data_stream.h" | 9 #include "net/base/upload_data_stream.h" |
| 11 #include "net/url_request/url_fetcher_core.h" | 10 #include "net/url_request/url_fetcher_core.h" |
| 12 #include "net/url_request/url_fetcher_factory.h" | 11 #include "net/url_request/url_fetcher_factory.h" |
| 13 #include "net/url_request/url_fetcher_response_writer.h" | 12 #include "net/url_request/url_fetcher_response_writer.h" |
| 14 | 13 |
| 15 namespace net { | 14 namespace net { |
| 16 | 15 |
| 17 static URLFetcherFactory* g_factory = NULL; | 16 static URLFetcherFactory* g_factory = NULL; |
| 18 | 17 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 URLFetcherFactory* URLFetcherImpl::factory() { | 216 URLFetcherFactory* URLFetcherImpl::factory() { |
| 218 return g_factory; | 217 return g_factory; |
| 219 } | 218 } |
| 220 | 219 |
| 221 // static | 220 // static |
| 222 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 221 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
| 223 g_factory = factory; | 222 g_factory = factory; |
| 224 } | 223 } |
| 225 | 224 |
| 226 } // namespace net | 225 } // namespace net |
| OLD | NEW |