Changeset 106655 in webkit
- Timestamp:
- Feb 3, 2012 6:05:32 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106654 r106655 1 2012-02-03 Rob Buis <rbuis@rim.com> 2 3 Upstream targetType usage on ResourceRequest for BlackBerry port 4 https://bugs.webkit.org/show_bug.cgi?id=77649 5 6 Reviewed by Antonio Gomes. 7 8 Upstream bits that make use of targetType enum. 9 10 * loader/PingLoader.cpp: 11 (WebCore::PingLoader::loadImage): 12 (WebCore::PingLoader::sendPing): 13 (WebCore::PingLoader::reportContentSecurityPolicyViolation): 14 * platform/network/blackberry/ResourceRequest.h: 15 (ResourceRequest): 16 (WebCore::ResourceRequest::targetType): 17 (WebCore::ResourceRequest::setTargetType): 18 * xml/XMLHttpRequest.cpp: 19 (WebCore::XMLHttpRequest::createRequest): 20 1 21 2012-02-03 Allan Sandfeld Jensen <allan.jensen@nokia.com> 2 22 -
trunk/Source/WebCore/loader/PingLoader.cpp
r100895 r106655 57 57 58 58 ResourceRequest request(url); 59 #if PLATFORM(CHROMIUM) 59 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 60 60 request.setTargetType(ResourceRequest::TargetIsImage); 61 61 #endif … … 76 76 { 77 77 ResourceRequest request(pingURL); 78 #if PLATFORM(CHROMIUM) 78 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 79 79 request.setTargetType(ResourceRequest::TargetIsSubresource); 80 80 #endif … … 107 107 { 108 108 ResourceRequest request(reportURL); 109 #if PLATFORM(CHROMIUM) 109 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 110 110 request.setTargetType(ResourceRequest::TargetIsSubresource); 111 111 #endif -
trunk/Source/WebCore/platform/network/blackberry/ResourceRequest.h
r102303 r106655 32 32 class ResourceRequest : public ResourceRequestBase { 33 33 public: 34 // The type of this ResourceRequest, based on how the resource will be used. 35 enum TargetType { 36 TargetIsMainFrame, 37 TargetIsSubframe, 38 TargetIsSubresource, // Resource is a generic subresource. (Generally a specific type should be specified) 39 TargetIsStyleSheet, 40 TargetIsScript, 41 TargetIsFontResource, 42 TargetIsImage, 43 TargetIsObject, 44 TargetIsMedia, 45 TargetIsWorker, 46 TargetIsSharedWorker, 47 TargetIsPrefetch, 48 TargetIsPrerender, 49 TargetIsFavicon, 50 TargetIsXHR, 51 TargetIsTextTrack, 52 TargetIsUnspecified, 53 }; 34 54 ResourceRequest(const String& url) 35 55 : ResourceRequestBase(KURL(ParsedURLString, url), UseProtocolCachePolicy) … … 95 115 bool forceDownload() const { return m_forceDownload; } 96 116 117 // What this request is for. 118 TargetType targetType() const { return m_targetType; } 119 void setTargetType(TargetType type) { m_targetType = type; } 120 97 121 private: 98 122 friend class ResourceRequestBase; … … 105 129 bool m_isRequestedByPlugin; 106 130 bool m_forceDownload; 131 TargetType m_targetType; 107 132 108 133 void doUpdatePlatformRequest() { } -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r106654 r106655 671 671 ResourceRequest request(m_url); 672 672 request.setHTTPMethod(m_method); 673 #if PLATFORM(CHROMIUM) 673 #if PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) 674 674 request.setTargetType(ResourceRequest::TargetIsXHR); 675 675 #endif
Note: See TracChangeset
for help on using the changeset viewer.