Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtils.cpp

Issue 2433363002: Use net::HttpResponseHeaders::IsRedirectResponseCode() from Blink (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/NetworkUtils.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtils.cpp b/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
index 2305b6a16800974cc35ded9000ef2ce01e482506..ec49e5c3d93895bd2ef91c63c55c8e3093611b31 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
@@ -10,6 +10,7 @@
#include "net/base/net_errors.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/base/url_util.h"
+#include "net/http/http_response_headers.h"
#include "platform/SharedBuffer.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/URLConversion.h"
@@ -77,6 +78,10 @@ PassRefPtr<SharedBuffer> parseDataURL(const KURL& url,
return nullptr;
}
+bool isRedirectResponseCode(int responseCode) {
+ return net::HttpResponseHeaders::IsRedirectResponseCode(responseCode);
+}
+
} // NetworkUtils
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698