diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 01:11:15 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 01:11:15 +0000 |
commit | 56ed95aa44b76b41ba561237ab9c586830639b3b (patch) | |
tree | 2d621f21b57e29f5632928013488f3aab99f9fcc /net/url_request | |
parent | a5c6529a3be77f1c0c6e87917172d60323e97233 (diff) | |
download | chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.zip chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.tar.gz chromium_src-56ed95aa44b76b41ba561237ab9c586830639b3b.tar.bz2 |
Move URLFetcherFactory from content to net
BUG=118220
TEST=
TBR=jam@chromium.org,jhawkins@chromium.org,mnissler@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10438002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_fetcher_factory.cc | 11 | ||||
-rw-r--r-- | net/url_request/url_fetcher_factory.h | 31 |
2 files changed, 42 insertions, 0 deletions
diff --git a/net/url_request/url_fetcher_factory.cc b/net/url_request/url_fetcher_factory.cc new file mode 100644 index 0000000..9335e7c --- /dev/null +++ b/net/url_request/url_fetcher_factory.cc @@ -0,0 +1,11 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "net/url_request/url_fetcher_factory.h" + +namespace net { + +URLFetcherFactory::~URLFetcherFactory() {} + +} // namespace net diff --git a/net/url_request/url_fetcher_factory.h b/net/url_request/url_fetcher_factory.h new file mode 100644 index 0000000..77108b6 --- /dev/null +++ b/net/url_request/url_fetcher_factory.h @@ -0,0 +1,31 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_URL_REQUEST_URL_FETCHER_FACTORY_H_ +#define NET_URL_REQUEST_URL_FETCHER_FACTORY_H_ +#pragma once + +#include "net/base/net_export.h" +#include "net/url_request/url_fetcher.h" + +namespace net { +class URLFetcherDelegate; + +// URLFetcher::Create uses the currently registered Factory to create the +// URLFetcher. Factory is intended for testing. +class NET_EXPORT URLFetcherFactory { + public: + virtual URLFetcher* CreateURLFetcher( + int id, + const GURL& url, + URLFetcher::RequestType request_type, + URLFetcherDelegate* d) = 0; + + protected: + virtual ~URLFetcherFactory(); +}; + +} // namespace net + +#endif // NET_URL_REQUEST_URL_FETCHER_FACTORY_H_ |