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_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "net/url_request/url_fetcher_core.h" | 9 #include "net/url_request/url_fetcher_core.h" |
10 #include "net/url_request/url_fetcher_factory.h" | 10 #include "net/url_request/url_fetcher_factory.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 static URLFetcherFactory* g_factory = NULL; | 14 static URLFetcherFactory* g_factory = NULL; |
15 | 15 |
16 URLFetcherImpl::URLFetcherImpl(const GURL& url, | 16 URLFetcherImpl::URLFetcherImpl(const GURL& url, |
17 RequestType request_type, | 17 RequestType request_type, |
18 URLFetcherDelegate* d) | 18 URLFetcherDelegate* d) |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 URLFetcherFactory* URLFetcherImpl::factory() { | 212 URLFetcherFactory* URLFetcherImpl::factory() { |
213 return g_factory; | 213 return g_factory; |
214 } | 214 } |
215 | 215 |
216 // static | 216 // static |
217 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { | 217 void URLFetcherImpl::set_factory(URLFetcherFactory* factory) { |
218 g_factory = factory; | 218 g_factory = factory; |
219 } | 219 } |
220 | 220 |
221 } // namespace net | 221 } // namespace net |
OLD | NEW |