diff options
Diffstat (limited to 'chromium/net/url_request/url_fetcher_factory.h')
-rw-r--r-- | chromium/net/url_request/url_fetcher_factory.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/net/url_request/url_fetcher_factory.h b/chromium/net/url_request/url_fetcher_factory.h new file mode 100644 index 00000000000..0c5a5eb1f4f --- /dev/null +++ b/chromium/net/url_request/url_fetcher_factory.h @@ -0,0 +1,29 @@ +// 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_ + +#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 URLFetcherFactory { + public: + virtual URLFetcher* CreateURLFetcher( + int id, + const GURL& url, + URLFetcher::RequestType request_type, + URLFetcherDelegate* delegate) = 0; + + protected: + virtual ~URLFetcherFactory() {} +}; + +} // namespace net + +#endif // NET_URL_REQUEST_URL_FETCHER_FACTORY_H_ |