| 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 "content/test/test_url_fetcher_factory.h" | 5 #include "content/public/test/test_url_fetcher_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "content/common/net/url_fetcher_impl.h" | 13 #include "content/common/net/url_fetcher_impl.h" |
| 14 #include "net/base/host_port_pair.h" | 14 #include "net/base/host_port_pair.h" |
| 15 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 | 330 |
| 331 URLFetcherImplFactory::~URLFetcherImplFactory() {} | 331 URLFetcherImplFactory::~URLFetcherImplFactory() {} |
| 332 | 332 |
| 333 net::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( | 333 net::URLFetcher* URLFetcherImplFactory::CreateURLFetcher( |
| 334 int id, | 334 int id, |
| 335 const GURL& url, | 335 const GURL& url, |
| 336 net::URLFetcher::RequestType request_type, | 336 net::URLFetcher::RequestType request_type, |
| 337 net::URLFetcherDelegate* d) { | 337 net::URLFetcherDelegate* d) { |
| 338 return new URLFetcherImpl(url, request_type, d); | 338 return new URLFetcherImpl(url, request_type, d); |
| 339 } | 339 } |
| OLD | NEW |