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

Unified Diff: platform/network/ResourceRequestBase.h

Issue 113554: For local review prior to sending to webkit (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years, 6 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 | « page/Frame.cpp ('k') | platform/network/ResourceRequestBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform/network/ResourceRequestBase.h
===================================================================
--- platform/network/ResourceRequestBase.h (revision 44202)
+++ platform/network/ResourceRequestBase.h (working copy)
@@ -31,6 +31,9 @@
#include "FormData.h"
#include "KURL.h"
#include "HTTPHeaderMap.h"
+#if ENABLE(APPLICATION_CACHE)
+#include "ApplicationCacheCommon.h"
+#endif
#include <memory>
#include <wtf/OwnPtr.h>
@@ -115,6 +118,12 @@
bool reportUploadProgress() const { return m_reportUploadProgress; }
void setReportUploadProgress(bool reportUploadProgress) { m_reportUploadProgress = reportUploadProgress; }
+#if ENABLE(APPLICATION_CACHE)
+ // Allows the request to be matched up with its cache context.
+ GlobalApplicationCacheContextID applicationCacheContextID() const { return m_appcacheContextID; }
+ void setApplicationCacheContextID(GlobalApplicationCacheContextID id) { m_appcacheContextID = id; }
+#endif
+
protected:
// Used when ResourceRequest is initialized from a platform representation of the request
ResourceRequestBase()
@@ -152,7 +161,9 @@
mutable bool m_resourceRequestUpdated;
mutable bool m_platformRequestUpdated;
bool m_reportUploadProgress;
-
+#if ENABLE(APPLICATION_CACHE)
+ GlobalApplicationCacheContextID m_appcacheContextID;
+#endif
private:
const ResourceRequest& asResourceRequest() const;
};
@@ -174,6 +185,9 @@
Vector<String> m_responseContentDispositionEncodingFallbackArray;
RefPtr<FormData> m_httpBody;
bool m_allowHTTPCookies;
+#if ENABLE(APPLICATION_CACHE)
+ GlobalApplicationCacheContextID m_appcacheContextID;
+#endif
};
unsigned initializeMaximumHTTPConnectionCountPerHost();
« no previous file with comments | « page/Frame.cpp ('k') | platform/network/ResourceRequestBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698