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

Unified Diff: webkit/glue/resource_type.h

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move http check 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..2e267325260d67b89958e14c7622d178569f5da2 100644
--- a/webkit/glue/resource_type.h
+++ b/webkit/glue/resource_type.h
@@ -6,6 +6,7 @@
#define WEBKIT_GLUE_RESOURCE_TYPE_H__
#include "base/basictypes.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
class ResourceType {
public:
@@ -37,6 +38,8 @@ class ResourceType {
return static_cast<Type>(type);
}
+ static Type FromTargetType(WebKit::WebURLRequest::TargetType type);
+
static bool IsFrame(ResourceType::Type type) {
return type == MAIN_FRAME || type == SUB_FRAME;
}

Powered by Google App Engine
This is Rietveld 408576698