Changeset 117529 in webkit
- Timestamp:
- May 17, 2012 7:36:45 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r117521 r117529 1 2012-05-17 Ami Fischman <fischman@chromium.org> 2 3 [Chromium] Store HTTP version in WebURLResponse 4 https://bugs.webkit.org/show_bug.cgi?id=86522 5 6 Reviewed by Adam Barth. 7 8 * chromium/public/WebURLResponse.h: 9 (WebURLResponse): 10 1 11 2012-05-17 Vangelis Kokkevis <vangelis@chromium.org> 2 12 -
trunk/Source/Platform/chromium/public/WebURLResponse.h
r115206 r117529 51 51 class WebURLResponse { 52 52 public: 53 enum HTTPVersion { Unknown, HTTP_0_9, HTTP_1_0, HTTP_1_1 }; 54 53 55 class ExtraData { 54 56 public: … … 107 109 WEBKIT_EXPORT WebString suggestedFileName() const; 108 110 WEBKIT_EXPORT void setSuggestedFileName(const WebString&); 111 112 WEBKIT_EXPORT HTTPVersion httpVersion() const; 113 WEBKIT_EXPORT void setHTTPVersion(HTTPVersion); 109 114 110 115 WEBKIT_EXPORT int httpStatusCode() const; -
trunk/Source/WebCore/ChangeLog
r117528 r117529 1 2012-05-17 Ami Fischman <fischman@chromium.org> 2 3 [Chromium] Store HTTP version in WebURLResponse 4 https://bugs.webkit.org/show_bug.cgi?id=86522 5 6 Reviewed by Adam Barth. 7 8 No new tests; this isn't exposed to the web platform. 9 10 * platform/chromium/support/WebURLResponse.cpp: 11 (WebKit::WebURLResponse::httpVersion): 12 (WebKit): 13 (WebKit::WebURLResponse::setHTTPVersion): 14 * platform/network/chromium/ResourceResponse.h: 15 (ResourceResponse): 16 (WebCore::ResourceResponse::ResourceResponse): 17 (WebCore::ResourceResponse::httpVersion): 18 (WebCore::ResourceResponse::setHTTPVersion): 19 1 20 2012-05-17 Levi Weintraub <leviw@chromium.org> 2 21 -
trunk/Source/WebCore/platform/chromium/support/WebURLResponse.cpp
r112754 r117529 212 212 } 213 213 214 WebURLResponse::HTTPVersion WebURLResponse::httpVersion() const 215 { 216 return static_cast<HTTPVersion>(m_private->m_resourceResponse->httpVersion()); 217 } 218 219 void WebURLResponse::setHTTPVersion(HTTPVersion version) 220 { 221 m_private->m_resourceResponse->setHTTPVersion(static_cast<ResourceResponse::HTTPVersion>(version)); 222 } 223 214 224 int WebURLResponse::httpStatusCode() const 215 225 { -
trunk/Source/WebCore/platform/network/chromium/ResourceResponse.h
r108184 r117529 37 37 class ResourceResponse : public ResourceResponseBase { 38 38 public: 39 // FIXME: move this to ResourceResponseBase and implement for all ports (see history in http://webkit.org/b/86522). 40 enum HTTPVersion { Unknown, HTTP_0_9, HTTP_1_0, HTTP_1_1 }; 41 39 42 class ExtraData : public RefCounted<ExtraData> { 40 43 public: … … 43 46 44 47 ResourceResponse() 45 : m_appCacheID(0) 48 : m_httpVersion(Unknown) 49 , m_appCacheID(0) 46 50 , m_isMultipartPayload(false) 47 51 , m_wasFetchedViaSPDY(false) … … 56 60 ResourceResponse(const KURL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename) 57 61 : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName, filename) 62 , m_httpVersion(Unknown) 58 63 , m_appCacheID(0) 59 64 , m_isMultipartPayload(false) … … 66 71 { 67 72 } 73 74 HTTPVersion httpVersion() const { return m_httpVersion; } 75 void setHTTPVersion(HTTPVersion version) { m_httpVersion = version; } 68 76 69 77 const CString& getSecurityInfo() const { return m_securityInfo; } … … 129 137 void doPlatformAdopt(PassOwnPtr<CrossThreadResourceResponseData>); 130 138 139 // HTTP version used in the response, if known. 140 HTTPVersion m_httpVersion; 141 131 142 // The id of the appcache this response was retrieved from, or zero if 132 143 // the response was not retrieved from an appcache. -
trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp
r117043 r117529 63 63 #include "PlatformCursor.h" 64 64 #include "ReferrerPolicy.h" 65 #include "ResourceResponse.h" 65 66 #include "Settings.h" 66 67 #include "SpeechRecognitionError.h" … … 110 111 #include <public/WebFilterOperation.h> 111 112 #include <public/WebReferrerPolicy.h> 113 #include <public/WebURLResponse.h> 112 114 #include <wtf/Assertions.h> 113 115 #include <wtf/text/StringImpl.h> … … 585 587 COMPILE_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeReportOnly, ContentSecurityPolicy::ReportOnly); 586 588 COMPILE_ASSERT_MATCHING_ENUM(WebContentSecurityPolicyTypeEnforcePolicy, ContentSecurityPolicy::EnforcePolicy); 589 590 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::Unknown, ResourceResponse::Unknown); 591 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_0_9, ResourceResponse::HTTP_0_9); 592 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_0, ResourceResponse::HTTP_1_0); 593 COMPILE_ASSERT_MATCHING_ENUM(WebURLResponse::HTTP_1_1, ResourceResponse::HTTP_1_1);
Note: See TracChangeset
for help on using the changeset viewer.