| Index: content/public/common/url_fetcher.cc
|
| diff --git a/content/common/net/url_fetcher.cc b/content/public/common/url_fetcher.cc
|
| similarity index 58%
|
| rename from content/common/net/url_fetcher.cc
|
| rename to content/public/common/url_fetcher.cc
|
| index 5b3f5cc60cb6e2bb236ae1c0d5b0d104c773dbe5..87dbb0ea560428d997280512e8ba891073833a75 100644
|
| --- a/content/common/net/url_fetcher.cc
|
| +++ b/content/public/common/url_fetcher.cc
|
| @@ -6,37 +6,20 @@
|
|
|
| #include "base/bind.h"
|
| #include "content/common/net/url_request_user_data.h"
|
| -#include "net/url_request/url_fetcher_factory.h"
|
| -#include "net/url_request/url_fetcher_impl.h"
|
| +#include "net/url_request/url_fetcher.h"
|
|
|
| -// static
|
| -net::URLFetcher* content::URLFetcher::Create(
|
| - const GURL& url,
|
| - net::URLFetcher::RequestType request_type,
|
| - net::URLFetcherDelegate* d) {
|
| - return new net::URLFetcherImpl(url, request_type, d);
|
| -}
|
| +namespace content {
|
| +
|
| +namespace URLFetcher {
|
|
|
| -// static
|
| -net::URLFetcher* content::URLFetcher::Create(
|
| - int id,
|
| +net::URLFetcher* Create(
|
| const GURL& url,
|
| net::URLFetcher::RequestType request_type,
|
| net::URLFetcherDelegate* d) {
|
| - net::URLFetcherFactory* factory = net::URLFetcherImpl::factory();
|
| - return factory ? factory->CreateURLFetcher(id, url, request_type, d) :
|
| - new net::URLFetcherImpl(url, request_type, d);
|
| + return net::URLFetcher::Create(url, request_type, d);
|
| }
|
|
|
| -// static
|
| -void content::URLFetcher::CancelAll() {
|
| - net::URLFetcherImpl::CancelAll();
|
| -}
|
| -
|
| -// static
|
| -void content::URLFetcher::SetEnableInterceptionForTests(bool enabled) {
|
| - net::URLFetcherImpl::SetEnableInterceptionForTests(enabled);
|
| -}
|
| +} // namespace URLFetcher
|
|
|
| namespace {
|
|
|
| @@ -48,8 +31,6 @@ base::SupportsUserData::Data* CreateURLRequestUserData(
|
|
|
| } // namespace
|
|
|
| -namespace content {
|
| -
|
| void AssociateURLFetcherWithRenderView(net::URLFetcher* url_fetcher,
|
| const GURL& first_party_for_cookies,
|
| int render_process_id,
|
|
|