diff options
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_ |