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

Unified Diff: webkit/common/resource_type.cc

Issue 55513002: Add ResourceType::PING. and mark those requests as detachable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use DCHECK_EQ Created 7 years, 1 month 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 | « webkit/common/resource_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/resource_type.cc
diff --git a/webkit/common/resource_type.cc b/webkit/common/resource_type.cc
index 678131b3bb69fb2cc72d804ffb02e23ba52a03f6..a8c3657da47e188b573b6225bd0be75805769573 100644
--- a/webkit/common/resource_type.cc
+++ b/webkit/common/resource_type.cc
@@ -40,6 +40,10 @@ ResourceType::Type ResourceType::FromTargetType(
return ResourceType::FAVICON;
case WebURLRequest::TargetIsXHR:
return ResourceType::XHR;
+#if defined(WEBKIT_HAS_TARGET_IS_PING)
+ case WebURLRequest::TargetIsPing:
+ return ResourceType::PING;
+#endif
default:
NOTREACHED();
return ResourceType::SUB_RESOURCE;
« no previous file with comments | « webkit/common/resource_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698