Index: net/url_request/url_fetcher.cc |
diff --git a/net/url_request/url_fetcher.cc b/net/url_request/url_fetcher.cc |
index 27f32fa1b2c6ba6d2f9bde4e5a13c77ade825cd2..e0fd5d103feabd2ebab3d4fc9019603f32281142 100644 |
--- a/net/url_request/url_fetcher.cc |
+++ b/net/url_request/url_fetcher.cc |
@@ -4,8 +4,40 @@ |
#include "net/url_request/url_fetcher.h" |
+#include "net/url_request/url_fetcher_factory.h" |
+#include "net/url_request/url_fetcher_impl.h" |
+ |
namespace net { |
URLFetcher::~URLFetcher() {} |
+// static |
+URLFetcher* net::URLFetcher::Create( |
+ const GURL& url, |
+ URLFetcher::RequestType request_type, |
+ URLFetcherDelegate* d) { |
+ return new URLFetcherImpl(url, request_type, d); |
+} |
+ |
+// static |
+URLFetcher* net::URLFetcher::Create( |
+ int id, |
+ const GURL& url, |
+ URLFetcher::RequestType request_type, |
+ URLFetcherDelegate* d) { |
+ URLFetcherFactory* factory = URLFetcherImpl::factory(); |
+ return factory ? factory->CreateURLFetcher(id, url, request_type, d) : |
+ new URLFetcherImpl(url, request_type, d); |
+} |
+ |
+// static |
+void net::URLFetcher::CancelAll() { |
+ URLFetcherImpl::CancelAll(); |
+} |
+ |
+// static |
+void net::URLFetcher::SetEnableInterceptionForTests(bool enabled) { |
+ URLFetcherImpl::SetEnableInterceptionForTests(enabled); |
+} |
+ |
} // namespace net |