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

Unified Diff: webkit/glue/resource_type.h

Issue 7551019: Add support for WebURLRequest::TargetIsXHR (part I) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 5 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
Index: webkit/glue/resource_type.h
diff --git a/webkit/glue/resource_type.h b/webkit/glue/resource_type.h
index e9ae3b6e8bb7474c5bcbb4f278446322fae2d5ff..ebe7c8c4e1c760c28d45280d94f7dcb3d0a642e6 100644
--- a/webkit/glue/resource_type.h
+++ b/webkit/glue/resource_type.h
@@ -25,6 +25,7 @@ class ResourceType {
PREFETCH, // an explicitly requested prefetch
PRERENDER, // an explicitly requested prerender
FAVICON, // a favicon
+ XHR, // a XMLHttpRequest
LAST_TYPE // Place holder so we don't need to change ValidType
// everytime.
};
@@ -51,7 +52,8 @@ class ResourceType {
type == IMAGE ||
type == FONT_RESOURCE ||
type == SUB_RESOURCE ||
- type == WORKER;
+ type == WORKER ||
+ type == XHR;
}
private:

Powered by Google App Engine
This is Rietveld 408576698