Changeset 112579 in webkit
- Timestamp:
- Mar 29, 2012 2:44:28 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112577 r112579 1 2012-03-29 Adam Barth <abarth@webkit.org> 2 3 [Chromium] Move ResourceHandle to WebCore/platform/network/chromium 4 https://bugs.webkit.org/show_bug.cgi?id=82657 5 6 Reviewed by James Robinson. 7 8 We finally arive at our destination. This patch actually moves 9 WebCore::ResourceHandle from Source/WebKit/chromium/src to 10 Source/WebCore/network/chromium, matching its location in other ports. 11 To make this happen, we also need to move WrappedResourceRequest and 12 WrappedResourceResponse. 13 14 This patch is the last patch from 15 https://github.com/abarth/webkit/compare/master...webcore-platform 16 17 * WebCore.gypi: 18 * platform/chromium/support/WrappedResourceRequest.h: Copied from Source/WebKit/chromium/src/WrappedResourceRequest.h. 19 * platform/chromium/support/WrappedResourceResponse.h: Copied from Source/WebKit/chromium/src/WrappedResourceResponse.h. 20 * platform/network/chromium/ResourceHandle.cpp: Copied from Source/WebKit/chromium/src/ResourceHandle.cpp. 21 (WebCore::ResourceHandleInternal::ResourceHandleInternal): 22 (WebCore::ResourceHandleInternal::start): 23 (WebCore::ResourceHandle::loadResourceSynchronously): 24 (WebCore::ResourceHandle::cacheMetadata): 25 * platform/network/chromium/ResourceHandleInternal.h: Copied from Source/WebKit/chromium/src/ResourceHandleInternal.h. 26 1 27 2012-03-29 Patrick Gansterer <paroga@webkit.org> 2 28 -
trunk/Source/WebCore/WebCore.gypi
r112572 r112579 3281 3281 'platform/chromium/support/WebURLResponse.cpp', 3282 3282 'platform/chromium/support/WebURLResponsePrivate.h', 3283 'platform/chromium/support/WrappedResourceRequest.h', 3284 'platform/chromium/support/WrappedResourceResponse.h', 3283 3285 'platform/cocoa/KeyEventCocoa.h', 3284 3286 'platform/cocoa/KeyEventCocoa.mm', … … 4267 4269 'platform/network/chromium/DNSChromium.cpp', 4268 4270 'platform/network/chromium/ResourceError.h', 4271 'platform/network/chromium/ResourceHandle.cpp', 4272 'platform/network/chromium/ResourceHandleInternal.h', 4269 4273 'platform/network/chromium/ResourceRequest.cpp', 4270 4274 'platform/network/chromium/ResourceRequest.h', -
trunk/Source/WebCore/platform/chromium/support/WrappedResourceRequest.h
r112571 r112579 32 32 #define WrappedResourceRequest_h 33 33 34 #include "platform/WebURLRequest.h"35 34 #include "WebURLRequestPrivate.h" 35 #include <public/WebURLRequest.h> 36 36 37 37 namespace WebKit { -
trunk/Source/WebCore/platform/chromium/support/WrappedResourceResponse.h
r112571 r112579 32 32 #define WrappedResourceResponse_h 33 33 34 #include "platform/WebURLResponse.h"35 34 #include "WebURLResponsePrivate.h" 35 #include <public/WebURLResponse.h> 36 36 37 37 namespace WebKit { -
trunk/Source/WebCore/platform/network/chromium/ResourceHandle.cpp
r112571 r112579 37 37 #include "ResourceRequest.h" 38 38 #include "SharedBuffer.h" 39 40 #include "WebKit.h"41 #include "platform/WebKitPlatformSupport.h"42 #include "platform/WebURLError.h"43 #include "platform/WebURLLoader.h"44 #include "platform/WebURLLoaderClient.h"45 #include "platform/WebURLRequest.h"46 #include "platform/WebURLResponse.h"47 39 #include "WrappedResourceRequest.h" 48 40 #include "WrappedResourceResponse.h" 41 #include <public/Platform.h> 42 #include <public/WebURLError.h> 43 #include <public/WebURLLoader.h> 44 #include <public/WebURLLoaderClient.h> 45 #include <public/WebURLRequest.h> 46 #include <public/WebURLResponse.h> 49 47 50 48 using namespace WebKit; … … 58 56 , m_client(client) 59 57 , m_state(ConnectionStateNew) 60 { } 58 { 59 } 61 60 62 61 void ResourceHandleInternal::start() … … 66 65 m_state = ConnectionStateStarted; 67 66 68 m_loader = adoptPtr( webKitPlatformSupport()->createURLLoader());67 m_loader = adoptPtr(Platform::current()->createURLLoader()); 69 68 ASSERT(m_loader); 70 69 … … 246 245 bool ResourceHandle::loadsBlocked() 247 246 { 248 return false; 247 return false; // This seems to be related to sync XMLHttpRequest... 249 248 } 250 249 … … 257 256 Vector<char>& data) 258 257 { 259 OwnPtr<WebURLLoader> loader = adoptPtr( webKitPlatformSupport()->createURLLoader());258 OwnPtr<WebURLLoader> loader = adoptPtr(Platform::current()->createURLLoader()); 260 259 ASSERT(loader); 261 260 … … 278 277 // This method is used to determine if a POST request can be repeated from 279 278 // cache, but you cannot really know until you actually try to read from the 280 // cache. 279 // cache. Even if we checked now, something else could come along and wipe 281 280 // out the cache entry by the time we fetch it. 282 281 // 283 282 // So, we always say yes here, to prevent the FrameLoader from initiating a 284 // reload. 283 // reload. Then in FrameLoaderClientImpl::dispatchWillSendRequest, we 285 284 // fix-up the cache policy of the request to force a load from the cache. 286 285 // … … 292 291 void ResourceHandle::cacheMetadata(const ResourceResponse& response, const Vector<char>& data) 293 292 { 293 // FIXME: This should use Platform::current() directly. 294 294 PlatformSupport::cacheMetadata(response.url(), response.responseTime(), data); 295 295 } -
trunk/Source/WebCore/platform/network/chromium/ResourceHandleInternal.h
r112571 r112579 33 33 34 34 #include "ResourceRequest.h" 35 #include "platform/WebCommon.h"36 #include "platform/WebURLLoader.h"37 #include "platform/WebURLLoaderClient.h"35 #include <public/WebCommon.h> 36 #include <public/WebURLLoader.h> 37 #include <public/WebURLLoaderClient.h> 38 38 39 39 namespace WebCore { -
trunk/Source/WebKit/chromium/ChangeLog
r112576 r112579 1 2012-03-29 Adam Barth <abarth@webkit.org> 2 3 [Chromium] Move ResourceHandle to WebCore/platform/network/chromium 4 https://bugs.webkit.org/show_bug.cgi?id=82657 5 6 Reviewed by James Robinson. 7 8 * WebKit.gyp: 9 * src/ResourceHandle.cpp: Removed. 10 * src/ResourceHandleInternal.h: Removed. 11 * src/WrappedResourceRequest.h: Removed. 12 * src/WrappedResourceResponse.h: Removed. 13 1 14 2012-03-29 Dmitry Lomov <dslomov@google.com> 2 15 -
trunk/Source/WebKit/chromium/WebKit.gyp
r112572 r112579 471 471 'src/PlatformMessagePortChannel.h', 472 472 'src/PlatformSupport.cpp', 473 'src/ResourceHandle.cpp',474 473 'src/ScrollbarGroup.cpp', 475 474 'src/ScrollbarGroup.h', … … 694 693 'src/WorkerFileWriterCallbacksBridge.cpp', 695 694 'src/WorkerFileWriterCallbacksBridge.h', 696 'src/WrappedResourceRequest.h',697 'src/WrappedResourceResponse.h',698 695 'src/win/WebInputEventFactory.cpp', 699 696 'src/win/WebScreenInfoFactory.cpp',
Note: See TracChangeset
for help on using the changeset viewer.