1. 12 May, 2011 1 commit
    • tonyg@chromium.org's avatar
      2011-05-10 Tony Gentilcore <tonyg@chromium.org> · 4b0a55f4
      tonyg@chromium.org authored
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * accessibility/AccessibilityObject.cpp:
              * accessibility/AccessibilityRenderObject.cpp:
              * accessibility/mac/AccessibilityObjectWrapper.mm:
              * dom/DocumentMarkerController.cpp:
              * dom/Position.cpp:
              * dom/PositionIterator.cpp:
              * dom/Range.cpp:
              * editing/ApplyBlockElementCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/Editor.cpp:
              * editing/EditorCommand.cpp:
              * editing/FrameSelection.cpp:
              * editing/HTMLInterchange.cpp:
              * editing/IndentOutdentCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/SpellChecker.h:
              * editing/SpellingCorrectionCommand.cpp:
              * editing/SpellingCorrectionController.h:
              * editing/TextCheckingHelper.cpp:
              * editing/TextIterator.h:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * fileapi/DOMFileSystem.cpp:
              * fileapi/DirectoryReaderSync.cpp:
              * fileapi/DirectoryReaderSync.h:
              * fileapi/FileEntry.h:
              * fileapi/FileWriter.h:
              * fileapi/FileWriterBase.h:
              * fileapi/FileWriterSync.h:
              * history/CachedFrame.cpp:
              * history/CachedPage.cpp:
              * history/HistoryItem.cpp:
              * history/HistoryItem.h:
              * history/PageCache.h:
              * loader/HistoryController.h:
              * loader/PingLoader.h:
              * loader/ResourceLoader.h:
              * loader/appcache/DOMApplicationCache.h:
              * loader/cache/CachedCSSStyleSheet.h:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedFont.h:
              * loader/cache/CachedResourceRequest.cpp:
              * loader/cache/CachedResourceRequest.h:
              * loader/cache/MemoryCache.h:
              * notifications/Notification.cpp:
              * notifications/Notification.h:
              * notifications/NotificationCenter.cpp:
              * notifications/NotificationCenter.h:
              * page/Chrome.cpp:
              * page/Chrome.h:
              * page/DOMSelection.cpp:
              * page/DOMTimer.h:
              * page/DOMWindow.cpp:
              * page/EventHandler.cpp:
              * page/FocusController.h:
              * page/Geolocation.cpp:
              * page/Geolocation.h:
              * page/History.cpp:
              * rendering/RenderListBox.cpp:
              * workers/WorkerContext.cpp:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * src/WebHistoryItem.cpp:
              * src/WebNotification.cpp:
              * src/WebTextCheckingCompletionImpl.cpp:
              * src/mac/WebSubstringUtil.mm:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * Plugins/Hosted/WebHostedNetscapePluginView.mm:
              * WebView/WebFrame.mm:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * WebProcess/WebPage/mac/WebPageMac.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b0a55f4
  2. 27 Apr, 2011 1 commit
    • psolanki@apple.com's avatar
      Part of WebCore should use CFNetwork-based loader on Mac · 0ebaae60
      psolanki@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=51836
      
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      Add willCacheResponse method when using CFNetwork on Mac. Also put appropriate ifdefs around
      willCacheResponse/shouldCacheResponse.
      
      * loader/EmptyClients.h:
      * loader/FrameLoaderClient.h:
      * loader/ResourceLoader.h:
      * loader/cf/ResourceLoaderCFNet.cpp:
      * loader/mac/ResourceLoaderMac.mm:
      (WebCore::ResourceLoader::willCacheResponse):
      * platform/network/ResourceHandleClient.h:
      (WebCore::ResourceHandleClient::willCacheResponse):
      (WebCore::ResourceHandleClient::shouldCacheResponse):
      * platform/network/cf/ResourceHandleCFNet.cpp:
      (WebCore::willCacheResponse):
      
      Source/WebKit2:
      
      Add PLATFORM(WIN) ifdef around shouldCacheResponse.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ebaae60
  3. 19 Apr, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-04-19 Vsevolod Vlasov <vsevik@chromium.org> · 9f623594
      commit-queue@webkit.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * fileapi/FileReaderLoader.cpp:
              (WebCore::FileReaderLoader::didReceiveData):
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
              * inspector/InspectorInstrumentation.h:
              (WebCore::InspectorInstrumentation::didReceiveContentLength):
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::didReceiveContentLength):
              * inspector/InspectorResourceAgent.h:
              * inspector/front-end/NetworkManager.js:
              (WebInspector.NetworkDispatcher.prototype.dataReceived):
              * loader/DocumentThreadableLoader.cpp:
              (WebCore::DocumentThreadableLoader::didReceiveData):
              (WebCore::DocumentThreadableLoader::didReceiveCachedMetadata):
              * loader/DocumentThreadableLoader.h:
              * loader/FrameLoaderClient.h:
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::didReceiveData):
              * loader/MainResourceLoader.h:
              * loader/NetscapePlugInStreamLoader.cpp:
              (WebCore::NetscapePlugInStreamLoader::didReceiveData):
              * loader/NetscapePlugInStreamLoader.h:
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::didReceiveData):
              (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
              (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
              * loader/ResourceLoadNotifier.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didReceiveData):
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didReceiveData):
              * loader/SubresourceLoader.h:
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::didReceiveData):
              (WebCore::SubresourceLoaderClient::didReceiveCachedMetadata):
              * loader/WorkerThreadableLoader.cpp:
              (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
              (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveCachedMetadata):
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didReceiveData):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheHost.h:
              * notifications/Notification.cpp:
              (WebCore::Notification::didReceiveData):
              * notifications/Notification.h:
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              (StreamingClient::didReceiveData):
              * platform/network/BlobResourceHandle.cpp:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didReceiveData):
              * platform/network/android/ResourceHandleAndroid.cpp:
              (WebCore::SyncLoader::didReceiveData):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::WebCoreSynchronousLoaderClient::didReceiveData):
              * platform/network/curl/ResourceHandleCurl.cpp:
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCoreSynchronousLoaderClient::didReceiveData):
              * platform/network/soup/ResourceHandleSoup.cpp:
              * platform/network/win/ResourceHandleWin.cpp:
              * workers/WorkerScriptLoader.h:
              * xml/XMLHttpRequest.h:
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              Renamed lengthReceived to encodedDataLength/dataLength.
      
              * public/WebURLLoaderClient.h:
              (WebKit::WebURLLoaderClient::didReceiveData):
              * src/AssociatedURLLoader.cpp:
              (WebKit::AssociatedURLLoader::ClientAdapter::didReceiveCachedMetadata):
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::dispatchDidReceiveContentLength):
              * src/FrameLoaderClientImpl.h:
              * src/ResourceHandle.cpp:
              (WebCore::ResourceHandleInternal::didReceiveData):
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebCoreSupport/FrameLoaderClientEfl.cpp:
              (WebCore::FrameLoaderClientEfl::dispatchDidReceiveContentLength):
              * WebCoreSupport/FrameLoaderClientEfl.h:
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
              * WebCoreSupport/FrameLoaderClientGtk.h:
              * webkit/webkitdownload.cpp:
              (DownloadClient::didReceiveData):
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchDidReceiveContentLength):
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebCoreSupport/WebFrameLoaderClient.h:
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebCoreSupport/FrameLoaderClientWinCE.h:
      2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
              https://bugs.webkit.org/show_bug.cgi?id=58883
      
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebKit::WebFrameLoaderClient::dispatchDidReceiveContentLength):
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f623594
  4. 22 Mar, 2011 1 commit
    • psolanki@apple.com's avatar
      2011-03-22 Pratik Solanki <psolanki@apple.com> · 82da28fc
      psolanki@apple.com authored
              Reviewed by David Kilzer.
      
              Implement -connection:didReceiveDataArray: NSURLConnection delegate method
              https://bugs.webkit.org/show_bug.cgi?id=56838
      
              Add experimental support for the didReceiveDataArray callback on
              NSURLConnection. A RessourceHandleClient indicates its ability to
              handle this callback by returning true from supportsDataArray() method.
              Currently only SubresourceLoader uses this so we get the benefit for
              CSS, JS and image loads. For other clients we call didReceiveData with
              the CFData contents as before.
      
              * WebCore.xcodeproj/project.pbxproj:
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.h:
              (WebCore::SubresourceLoader::supportsDataArray):
              * loader/cf/SubresourceLoaderCF.cpp: Added.
              (WebCore::SubresourceLoader::didReceiveDataArray):
              * loader/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::didReceiveDataArray):
              * platform/SharedBuffer.cpp:
              (WebCore::SharedBuffer::clear):
              (WebCore::SharedBuffer::buffer):
              * platform/SharedBuffer.h:
              * platform/cf/SharedBufferCF.cpp:
              (WebCore::SharedBuffer::append):
              (WebCore::SharedBuffer::copyDataArrayAndClear):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::supportsDataArray):
              (WebCore::ResourceHandleClient::didReceiveDataArray):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connection:didReceiveDataArray:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82da28fc
  5. 08 Jan, 2011 1 commit
  6. 21 Dec, 2010 1 commit
    • mitz@apple.com's avatar
      2010-12-21 Dan Bernstein <mitz@apple.com> · b6b52cd6
      mitz@apple.com authored
              Reviewed by Sam Weinig.
      
              <rdar://problem/8668230> REGRESSION (r71884): Returning alternate requests from willSendRequest can prevent other requests from ever being sent
              https://bugs.webkit.org/show_bug.cgi?id=51413
      
              71884 was wrong in moving willSendRequest to ResourceLoader::start(). It’s wrong to do all the
              scheduling, which is host-dependent, before calling willSendRequest, because the latter can
              change the host.
      
              * loader/NetscapePlugInStreamLoader.cpp:
              (WebCore::NetscapePlugInStreamLoader::create): Check the return value from ResourceLoader::init()
              and return 0 if it is false.
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::init): Made this function return a boolean. Moved the call to willSendRequest()
              from start() into here. Return false if willSendRequest() canceled the request.
              (WebCore::ResourceLoader::start): Moved the call to willSendRequest() from here to init().
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::create): Check the return value from ResourceLoader::init()
              and return 0 if it is false.
      2010-12-21  Dan Bernstein  <mitz@apple.com>
      
              Reviewed by Sam Weinig.
      
              <rdar://problem/8668230> REGRESSION (r71884): Returning alternate requests from willSendRequest can prevent other requests from ever being sent
              https://bugs.webkit.org/show_bug.cgi?id=51413
      
              * platform/mac/security/block-test-expected.txt: Reverted r71884.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6b52cd6
  7. 11 Nov, 2010 1 commit
    • japhet@chromium.org's avatar
      2010-11-11 Nate Chapin <japhet@chromium.org> · 8fb63c9f
      japhet@chromium.org authored
              Reviewed by Antti Koivisto.
      
              Test update for https://bugs.webkit.org/show_bug.cgi?id=49351,
              the timing of willSendRequest() calls will be slightly different.
      
              * platform/mac/security/block-test-expected.txt:
      2010-11-11  Nate Chapin  <japhet@chromium.org>
      
              Reviewed by Antti Koivisto.
      
              Cleanup after http://trac.webkit.org/changeset/71562, namely:
              Make deferred request handle simpler.
              Don't perform callbacks associated with network load starting
              (e.g., willSendRequest) until the load is in fact sent to the network.
              Make ResourceLoadScheduler a friend of ResourceLoader and make
              ResourceLoader::start() protected to try to ensure loads actually
              go through the scheduler.
              https://bugs.webkit.org/show_bug.cgi?id=49351
      
              Behavior should be covered by existing tests.
      
              * loader/NetscapePlugInStreamLoader.cpp:
              (WebCore::NetscapePlugInStreamLoader::create):
              * loader/ResourceLoadScheduler.cpp:
              (WebCore::ResourceLoadScheduler::servePendingRequests):
              * loader/ResourceLoadScheduler.h:
              (WebCore::ResourceLoadScheduler::HostInformation::limitRequests):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::init):
              (WebCore::ResourceLoader::start):
              (WebCore::ResourceLoader::setDefersLoading):
              (WebCore::ResourceLoader::didCancel):
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::reachedTerminalState):
              (WebCore::ResourceLoader::request):
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::create):
              * loader/loader.cpp:
              (WebCore::Loader::load):
              (WebCore::Loader::willSendRequest):
              * loader/loader.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fb63c9f
  8. 08 Nov, 2010 1 commit
    • japhet@chromium.org's avatar
      2010-11-08 Nate Chapin <japhet@chromium.org> · 22e5436c
      japhet@chromium.org authored
              Reviewed by Alexey Proskuryakov.
      
              Move connection-per-host counting and request prioritization out
              of Loader and down to the ResourceLoader level.
      
              https://bugs.webkit.org/show_bug.cgi?id=27165
      
              Refactor only, so no new tests.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::suspendPostAttachCallbacks):
              (WebCore::ContainerNode::resumePostAttachCallbacks):
              * loader/DocumentThreadableLoader.cpp:
              (WebCore::DocumentThreadableLoader::loadRequest):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::loadNow):
              * loader/NetscapePlugInStreamLoader.cpp:
              (WebCore::NetscapePlugInStreamLoader::create):
              * loader/NetscapePlugInStreamLoader.h:
              * loader/ResourceLoadScheduler.cpp: Added.
              (WebCore::ResourceLoadScheduler::hostForURL):
              (WebCore::resourceLoadScheduler): Returns the single ResourceLoadScheduler instance
              (WebCore::ResourceLoadScheduler::ResourceLoadScheduler):
              (WebCore::ResourceLoadScheduler::scheduleSubresourceLoad):
              (WebCore::ResourceLoadScheduler::schedulePluginStreamLoad):
              (WebCore::ResourceLoadScheduler::addMainResourceLoad):
              (WebCore::ResourceLoadScheduler::scheduleLoad):
              (WebCore::ResourceLoadScheduler::remove):
              (WebCore::ResourceLoadScheduler::crossOriginRedirectReceived):
              (WebCore::ResourceLoadScheduler::servePendingRequests):
              (WebCore::ResourceLoadScheduler::suspendPendingRequests):
              (WebCore::ResourceLoadScheduler::resumePendingRequests):
              (WebCore::ResourceLoadScheduler::scheduleServePendingRequests):
              (WebCore::ResourceLoadScheduler::requestTimerFired):
              (WebCore::ResourceLoadScheduler::assertLoaderBeingCounted):
              (WebCore::ResourceLoadScheduler::HostInformation::assertLoaderBeingCounted):
              (WebCore::ResourceLoadScheduler::HostInformation::HostInformation):
              (WebCore::ResourceLoadScheduler::HostInformation::~HostInformation):
              (WebCore::ResourceLoadScheduler::HostInformation::schedule):
              (WebCore::ResourceLoadScheduler::HostInformation::addLoadInProgress):
              (WebCore::ResourceLoadScheduler::HostInformation::remove):
              (WebCore::ResourceLoadScheduler::HostInformation::hasRequests):
              * loader/ResourceLoadScheduler.h: Added.
              (WebCore::ResourceLoadScheduler::HostInformation::name):
              (WebCore::ResourceLoadScheduler::HostInformation::limitRequests):
              (WebCore::ResourceLoadScheduler::HostInformation::requestsPending):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::releaseResources): Remove this from ResourceLoadScheduler's counting.
              (WebCore::ResourceLoader::load):
              (WebCore::ResourceLoader::start): Create the ResourceHandle, called by ResourceLoadScheduler.
              (WebCore::ResourceLoader::willSendRequest): Ensure ResourceLoadScheduler counts redirects
                  correctly.
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::url):
              * loader/icon/IconLoader.cpp:
              (WebCore::IconLoader::startLoading):
              * loader/loader.cpp: Move scheduling to ResourceLoadScheduler, remove Host subclass
                  and make Loader the SubresourceLoaderClient instead.
              (WebCore::determinePriority):
              (WebCore::Loader::load): Schedule the creation of the ResourceHandle, rather than
                  doing it immediately.
              (WebCore::Loader::cancelRequests):
              (WebCore::Loader::didFinishLoading):
              (WebCore::Loader::didFail):
              (WebCore::Loader::didReceiveResponse):
              (WebCore::Loader::didReceiveData):
              (WebCore::Loader::didReceiveCachedMetadata):
              * loader/loader.h:
              * page/EventSource.cpp:
              (WebCore::EventSource::connect):
              (WebCore::EventSource::endRequest):
              * plugins/PluginStream.cpp:
              (WebCore::PluginStream::start):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::createRequest):
              (WebCore::XMLHttpRequest::didFail):
              (WebCore::XMLHttpRequest::didFinishLoading):
              * xml/XMLHttpRequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22e5436c
  9. 15 Sep, 2010 3 commits
    • pfeldman@chromium.org's avatar
      2010-09-14 Pavel Feldman <pfeldman@chromium.org> · 88e0487f
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::willSendRequest):
              (WebCore::InspectorController::didFinishLoading):
              (WebCore::InspectorController::didFailLoading):
              * inspector/InspectorController.h:
              * inspector/InspectorResource.cpp:
              (WebCore::InspectorResource::endTiming):
              * inspector/InspectorResource.h:
              * loader/PingLoader.h:
              (WebCore::PingLoader::didFinishLoading):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didFinishLoading):
              * loader/ResourceLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didFinishLoading):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/icon/IconFetcher.cpp:
              (WebCore::IconFetcher::didFinishLoading):
              * loader/icon/IconFetcher.h:
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              (StreamingClient::didFinishLoading):
              * platform/network/BlobResourceHandle.cpp:
              (WebCore::BlobResourceHandle::notifyFinish):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didFinishLoading):
              * platform/network/ResourceLoadTiming.h:
              (WebCore::ResourceLoadTiming::deepCopy):
              (WebCore::ResourceLoadTiming::operator==):
              (WebCore::ResourceLoadTiming::ResourceLoadTiming):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::didFinishLoading):
              * platform/network/curl/ResourceHandleCurl.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/curl/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::parseDataUrl):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
              (WebCoreSynchronousLoaderClient::didFinishLoading):
              * platform/network/qt/QNetworkReplyHandler.cpp:
              (WebCore::QNetworkReplyHandler::finish):
              * platform/network/qt/ResourceHandleQt.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::WebCoreSynchronousLoader::didFail):
              * platform/network/win/ResourceHandleWin.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::ResourceHandle::onRequestComplete):
              (WebCore::ResourceHandle::fileLoadTimer):
              (WebCore::ResourceHandle::cancel):
      
      2010-09-14  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * public/WebURLLoadTiming.h:
              * public/WebURLLoaderClient.h:
              (WebKit::WebURLLoaderClient::didFinishLoading):
              * src/ResourceHandle.cpp:
              (WebCore::ResourceHandleInternal::didFinishLoading):
              * src/WebDevToolsAgentImpl.cpp:
              (WebKit::WebDevToolsAgentImpl::didFinishLoading):
              * src/WebURLLoadTiming.cpp:
              (WebKit::WebURLLoadTiming::receiveHeadersStart):
              (WebKit::WebURLLoadTiming::setReceiveHeadersStart):
      
      2010-09-14  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * webkit/webkitdownload.cpp:
              (DownloadClient::didFinishLoading):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88e0487f
    • yurys@chromium.org's avatar
      2010-09-15 Sheriff Bot <webkit.review.bot@gmail.com> · f32bd4ba
      yurys@chromium.org authored
              Unreviewed, rolling out r67551.
              http://trac.webkit.org/changeset/67551
              https://bugs.webkit.org/show_bug.cgi?id=45816
      
              "Plugin tests fail" (Requested by yurys on #webkit).
      
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::willSendRequest):
              (WebCore::InspectorController::didFinishLoading):
              (WebCore::InspectorController::didFailLoading):
              (WebCore::InspectorController::didCloseWebSocket):
              * inspector/InspectorController.h:
              * inspector/InspectorResource.cpp:
              (WebCore::InspectorResource::endTiming):
              * inspector/InspectorResource.h:
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::continueAfterContentPolicy):
              (WebCore::MainResourceLoader::didFinishLoading):
              * loader/MainResourceLoader.h:
              * loader/NetscapePlugInStreamLoader.cpp:
              (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
              * loader/PingLoader.h:
              (WebCore::PingLoader::didFinishLoading):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::didFinishLoad):
              (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
              (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
              * loader/ResourceLoadNotifier.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didFinishLoading):
              (WebCore::ResourceLoader::didFinishLoadingOnePart):
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didReceiveResponse):
              (WebCore::SubresourceLoader::didFinishLoading):
              * loader/SubresourceLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didFinishLoading):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/icon/IconFetcher.cpp:
              (WebCore::IconFetcher::didFinishLoading):
              * loader/icon/IconFetcher.h:
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              (StreamingClient::didFinishLoading):
              * platform/network/BlobResourceHandle.cpp:
              (WebCore::BlobResourceHandle::notifyFinish):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didFinishLoading):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::didFinishLoading):
              (WebCore::WebCoreSynchronousLoaderClient::didFinishLoading):
              * platform/network/curl/ResourceHandleCurl.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/curl/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::parseDataUrl):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
              (WebCoreSynchronousLoaderClient::didFinishLoading):
              * platform/network/qt/QNetworkReplyHandler.cpp:
              (WebCore::QNetworkReplyHandler::finish):
              * platform/network/qt/ResourceHandleQt.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::WebCoreSynchronousLoader::didFail):
              (WebCore::finishedCallback):
              (WebCore::parseDataUrl):
              * platform/network/win/ResourceHandleWin.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::ResourceHandle::onRequestComplete):
              (WebCore::ResourceHandle::fileLoadTimer):
              (WebCore::ResourceHandle::cancel):
      2010-09-15  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r67551.
              http://trac.webkit.org/changeset/67551
              https://bugs.webkit.org/show_bug.cgi?id=45816
      
              "Plugin tests fail" (Requested by yurys on #webkit).
      
              * public/WebURLLoaderClient.h:
              (WebKit::WebURLLoaderClient::didFinishLoading):
              * src/ResourceHandle.cpp:
              (WebCore::ResourceHandleInternal::didFinishLoading):
              * src/WebDevToolsAgentImpl.cpp:
              (WebKit::WebDevToolsAgentImpl::didFinishLoading):
      2010-09-15  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r67551.
              http://trac.webkit.org/changeset/67551
              https://bugs.webkit.org/show_bug.cgi?id=45816
      
              "Plugin tests fail" (Requested by yurys on #webkit).
      
              * webkit/webkitdownload.cpp:
              (DownloadClient::didFinishLoading):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f32bd4ba
    • pfeldman@chromium.org's avatar
      2010-09-14 Pavel Feldman <pfeldman@chromium.org> · 6142ab4c
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::willSendRequest):
              (WebCore::InspectorController::didFinishLoading):
              (WebCore::InspectorController::didFailLoading):
              * inspector/InspectorController.h:
              * inspector/InspectorResource.cpp:
              (WebCore::InspectorResource::endTiming):
              * inspector/InspectorResource.h:
              * loader/PingLoader.h:
              (WebCore::PingLoader::didFinishLoading):
              * loader/ResourceLoadNotifier.cpp:
              (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didFinishLoading):
              * loader/ResourceLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::didFinishLoading):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/icon/IconFetcher.cpp:
              (WebCore::IconFetcher::didFinishLoading):
              * loader/icon/IconFetcher.h:
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              (StreamingClient::didFinishLoading):
              * platform/network/BlobResourceHandle.cpp:
              (WebCore::BlobResourceHandle::notifyFinish):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didFinishLoading):
              * platform/network/ResourceLoadTiming.h:
              (WebCore::ResourceLoadTiming::deepCopy):
              (WebCore::ResourceLoadTiming::operator==):
              (WebCore::ResourceLoadTiming::ResourceLoadTiming):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::didFinishLoading):
              * platform/network/curl/ResourceHandleCurl.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/curl/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::parseDataUrl):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
              (WebCoreSynchronousLoaderClient::didFinishLoading):
              * platform/network/qt/QNetworkReplyHandler.cpp:
              (WebCore::QNetworkReplyHandler::finish):
              * platform/network/qt/ResourceHandleQt.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::WebCoreSynchronousLoader::didFail):
              * platform/network/win/ResourceHandleWin.cpp:
              (WebCore::WebCoreSynchronousLoader::didFinishLoading):
              (WebCore::ResourceHandle::onRequestComplete):
              (WebCore::ResourceHandle::fileLoadTimer):
              (WebCore::ResourceHandle::cancel):
      
      2010-09-14  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * public/WebURLLoadTiming.h:
              * public/WebURLLoaderClient.h:
              (WebKit::WebURLLoaderClient::didFinishLoading):
              * src/ResourceHandle.cpp:
              (WebCore::ResourceHandleInternal::didFinishLoading):
              * src/WebDevToolsAgentImpl.cpp:
              (WebKit::WebDevToolsAgentImpl::didFinishLoading):
              * src/WebURLLoadTiming.cpp:
              (WebKit::WebURLLoadTiming::receiveHeadersStart):
              (WebKit::WebURLLoadTiming::setReceiveHeadersStart):
      
      2010-09-14  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Provide network-based load timing.
              Before this change, inspector used timers taken from
              within WebCore notifications (that are by definition
              synchronous and serialized). As a result, timing was
              affected by the routines running on the main thread
              (JavaScript and such).
              https://bugs.webkit.org/show_bug.cgi?id=45664
      
              * webkit/webkitdownload.cpp:
              (DownloadClient::didFinishLoading):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6142ab4c
  10. 23 Aug, 2010 1 commit
    • jianli@chromium.org's avatar
      Handle blob resource. · 4c6124fe
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43941
      
      Reviewed by Darin Fisher.
      
      JavaScriptCore:
      
      * JavaScriptCore.exp: Add an export that is neede by BlobResourceHandle.
      
      WebCore:
      
      To provide lower level blob reosurce handling for all possible ports,
      BlobResourceHandle derived from ResourceHandle is implemented. It provides
      both synchronous and asynchronous resource loading for blob URL.
      
      BlobResourceHandle needs to create a FileStreamProxy instance in order to
      asynchronous file stream operation. To achive this, a hook createAsyncFileStream
      is added to ResourceHandleClient interface. When ResourceLoader implements
      ths hook, it creates and returns FileStreamProxy.
      
      BlobResourceHandle.* is not added to chromium port since it will implement
      its own blob resource handling.
      
      * Android.mk:
      * CMakeLists.txt:
      * GNUmakefile.am:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::createAsyncFileStream): Create and return FileStreamProxy.
      * loader/ResourceLoader.h:
      * page/SecurityOrigin.cpp: Add the support to get and validate the origin of blob URL.
      (WebCore::SecurityOrigin::create):
      (WebCore::SecurityOrigin::canLoad):
      * platform/network/BlobRegistryImpl.cpp:
      (WebCore::BlobRegistryImpl::appendStorageItems): Fix a bug that the length is not subtracted.
      * platform/network/BlobResourceHandle.cpp: Added.
      * platform/network/BlobResourceHandle.h: Added.
      * platform/network/HTTPParsers.cpp:
      (WebCore::parseRange):
      * platform/network/HTTPParsers.h:
      * platform/network/ResourceHandle.cpp: Hook up with asynchronous blob resource handling.
      (WebCore::ResourceHandle::create):
      * platform/network/ResourceHandle.h:
      * platform/network/ResourceHandleClient.h:
      (WebCore::ResourceHandleClient::createAsyncFileStream): Add a hook.
      * platform/network/mac/ResourceHandleMac.mm:
      (WebCore::ResourceHandle::loadResourceSynchronously): Hook up with synchronous blob resource handling.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c6124fe
  11. 10 May, 2010 1 commit
    • eric@webkit.org's avatar
      2010-05-10 Tony Gentilcore <tonyg@chromium.org> · dd40f183
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Provide mechanism to cache metadata for a resource
              https://bugs.webkit.org/show_bug.cgi?id=37874
      
              No new tests because no new functionality.
      
              * WebCore.gypi:
              * loader/CachedMetadata.h: Added.
              (WebCore::CachedMetadata::create):
              (WebCore::CachedMetadata::deserialize):
              (WebCore::CachedMetadata::serialize):
              (WebCore::CachedMetadata::~CachedMetadata):
              (WebCore::CachedMetadata::dataTypeID):
              (WebCore::CachedMetadata::data):
              (WebCore::CachedMetadata::size):
              (WebCore::CachedMetadata::readUnsigned):
              (WebCore::CachedMetadata::appendUnsigned):
              (WebCore::CachedMetadata::CachedMetadata):
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::setSerializedCachedMetadata):
              (WebCore::CachedResource::setCachedMetadata):
              (WebCore::CachedResource::cachedMetadata):
              * loader/CachedResource.h:
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::didReceiveCachedMetadata):
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didReceiveCachedMetadata):
              * loader/SubresourceLoader.h:
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::didReceiveCachedMetadata):
              * loader/loader.cpp:
              (WebCore::Loader::Host::didReceiveCachedMetadata):
              * loader/loader.h:
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::cacheMetadata):
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didReceiveCachedMetadata):
      2010-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Adam Barth.
      
              Provide mechanism to cache metadata for a resource
              https://bugs.webkit.org/show_bug.cgi?id=37874
      
              * src/ResourceHandle.cpp:
              (WebCore::ResourceHandle::cacheMetadata):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd40f183
  12. 08 May, 2010 2 commits
    • eric@webkit.org's avatar
      2010-05-08 Eric Seidel <eric@webkit.org> · c7c8bfaf
      eric@webkit.org authored
              Unreviewed, rolling out r59023.
              http://trac.webkit.org/changeset/59023
              https://bugs.webkit.org/show_bug.cgi?id=37874
      
              Caused Chromium Windows build to fail to link.
      
              * WebCore.gypi:
              * loader/CachedMetadata.h: Removed.
              * loader/CachedResource.cpp:
              * loader/CachedResource.h:
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              * loader/SubresourceLoader.h:
              * loader/SubresourceLoaderClient.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * platform/network/ResourceHandle.cpp:
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7c8bfaf
    • eric@webkit.org's avatar
      2010-05-08 Tony Gentilcore <tonyg@chromium.org> · a9a8d180
      eric@webkit.org authored
              Reviewed by Darin Fisher.
      
              Provide mechanism to store cached metadata on a CachedResource.
              https://bugs.webkit.org/show_bug.cgi?id=37874
      
              No new tests because no new functionality.
      
              * WebCore.gypi:
              * loader/CachedMetadata.h: Added.
              (WebCore::CachedMetadata::~CachedMetadata):
              (WebCore::CachedMetadata::data):
              (WebCore::CachedMetadata::size):
              (WebCore::CachedMetadata::create):
              (WebCore::CachedMetadata::deserialize):
              (WebCore::CachedMetadata::serialize):
              (WebCore::CachedMetadata::dataTypeID):
              (WebCore::CachedMetadata::readUnsigned):
              (WebCore::CachedMetadata::appendUnsigned):
              (WebCore::CachedMetadata::CachedMetadata):
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::setSerializedCachedMetadata):
              (WebCore::CachedResource::setCachedMetadata):
              (WebCore::CachedResource::cachedMetadata):
              * loader/CachedResource.h:
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::didReceiveCachedMetadata):
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didReceiveCachedMetadata):
              * loader/SubresourceLoader.h:
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::didReceiveCachedMetadata):
              * loader/loader.cpp:
              (WebCore::Loader::Host::didReceiveCachedMetadata):
              * loader/loader.h:
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::cacheMetadata):
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didReceiveCachedMetadata):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9a8d180
  13. 28 Apr, 2010 1 commit
    • mthole@apple.com's avatar
      Add canAuthenticateAgainstProtectionSpace() to frame loader so that a protection space · 1cdc77dd
      mthole@apple.com authored
      can be inspected before attempting to authenticate against it
      https://bugs.webkit.org/show_bug.cgi?id=38271
      
      Reviewed by David Kilzer.
      
      JavaScriptCore: 
      
      * wtf/Platform.h: Add WTF_USE_PROTECTION_SPACE_AUTH_CALLBACK define.
      
      WebCore: 
      
      * loader/EmptyClients.h:
      (WebCore::EmptyFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Added.
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::canAuthenticateAgainstProtectionSpace): Added.
      * loader/FrameLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::canAuthenticateAgainstProtectionSpace): Added.
      * loader/ResourceLoader.h:
      (WebCore::ResourceLoader::canAuthenticateAgainstProtectionSpace): Added.
      * platform/network/ProtectionSpace.h:
      (WebCore::):
      * platform/network/ResourceHandle.h:
      * platform/network/ResourceHandleClient.h:
      (WebCore::ResourceHandleClient::canAuthenticateAgainstProtectionSpace): Added.
      * platform/network/mac/AuthenticationMac.mm:
      (WebCore::mac):
      Add cases for case ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested and
      ProtectionSpaceAuthenticationSchemeClientCertificateRequested.  Guarded with the
      #if USE(PROTECTION_SPACE_AUTH_CALLBACK) as the new NSURLProtectionSpace constants don't
      exist prior to Mac OS X 10.6.
      (WebCore::core): Ditto.
      * platform/network/mac/ResourceHandleMac.mm:
      (WebCore::ResourceHandle::canAuthenticateAgainstProtectionSpace): Added.
      (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]): Added.
      
      WebKit/mac: 
      
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace):
      Added.  If the resource load delegate implements the callback, use its answer.  If it does
      not, then only send authentication challenges for pre-10.6 protection spaces, which matches
      CFNetwork's default behavior.
      * WebView/WebDelegateImplementationCaching.h:
      * WebView/WebDelegateImplementationCaching.mm:
      (CallResourceLoadDelegateReturningBoolean): Added case for passing three objects.
      * WebView/WebResourceLoadDelegatePrivate.h:
      Added private SPI definition: webView:resource:canAuthenticateAgainstProtectionSpace:forDataSource:
      * WebView/WebView.mm:
      (-[WebView _cacheResourceLoadDelegateImplementations]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1cdc77dd
  14. 06 Jan, 2010 2 commits
  15. 30 Jul, 2009 1 commit
    • darin@chromium.org's avatar
      2009-07-30 Michael Nordman <michaeln@google.com> · 6042aeab
      darin@chromium.org authored
              Reviewed by Darin Fisher.
      
              https://bugs.webkit.org/show_bug.cgi?id=27821
      
              ApplicationCacheHost refactoring.
              
              1) Better encapsulate the interfaces between webcore common code
              and the appcache system within a new class ApplicationCacheHost.
      
              2) Use that interface throughout the loader system, replacing inline appcache logic.
      
              3) Implement the interface in terms of webcore's appcache system.
      
              4) Add the new files to various makefiles.
      
              5) Implement protocolHostAndPortAreEqual() in KURLGoogle.cpp
      
              No new features, no new tests. The existing layout tests all pass.
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * html/HTMLHtmlElement.cpp:
              (WebCore::HTMLHtmlElement::insertedIntoDocument):
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::DocumentLoader):
              (WebCore::DocumentLoader::~DocumentLoader):
              (WebCore::DocumentLoader::mainReceivedError):
              (WebCore::DocumentLoader::detachFromFrame):
              (WebCore::DocumentLoader::setPrimaryLoadComplete):
              * loader/DocumentLoader.h:
              (WebCore::DocumentLoader::applicationCacheHost):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::canCachePageContainingThisFrame):
              (WebCore::FrameLoader::logCanCacheFrameDecision):
              (WebCore::FrameLoader::loadResourceSynchronously):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::didReceiveResponse):
              (WebCore::MainResourceLoader::didReceiveData):
              (WebCore::MainResourceLoader::didFinishLoading):
              (WebCore::MainResourceLoader::didFail):
              (WebCore::MainResourceLoader::load):
              * loader/MainResourceLoader.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::load):
              (WebCore::ResourceLoader::willSendRequest):
              (WebCore::ResourceLoader::didReceiveResponse):
              (WebCore::ResourceLoader::didFail):
              * loader/ResourceLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::selectCache):
              (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
              (WebCore::ApplicationCacheGroup::finishedLoadingMainResource):
              (WebCore::ApplicationCacheGroup::failedLoadingMainResource):
              (WebCore::ApplicationCacheGroup::disassociateDocumentLoader):
              (WebCore::ApplicationCacheGroup::update):
              (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
              (WebCore::ApplicationCacheGroup::manifestNotFound):
              (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
              (WebCore::ApplicationCacheGroup::startLoadingEntry):
              (WebCore::ApplicationCacheGroup::associateDocumentLoaderWithCache):
              (WebCore::CallCacheListenerTask::create):
              (WebCore::CallCacheListenerTask::performTask):
              (WebCore::CallCacheListenerTask::CallCacheListenerTask):
              (WebCore::ApplicationCacheGroup::postListenerTask):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheHost.cpp: Added.
              * loader/appcache/ApplicationCacheHost.h: Added.
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::transferApplicationCache):
              * loader/appcache/ApplicationCacheStorage.h:
              * loader/appcache/DOMApplicationCache.cpp:
              (WebCore::DOMApplicationCache::DOMApplicationCache):
              (WebCore::DOMApplicationCache::disconnectFrame):
              (WebCore::DOMApplicationCache::applicationCacheHost):
              (WebCore::DOMApplicationCache::status):
              (WebCore::DOMApplicationCache::update):
              (WebCore::DOMApplicationCache::swapCache):
              (WebCore::DOMApplicationCache::addEventListener):
              (WebCore::DOMApplicationCache::removeEventListener):
              (WebCore::DOMApplicationCache::dispatchEvent):
              (WebCore::DOMApplicationCache::callListener):
              (WebCore::DOMApplicationCache::toEventName):
              (WebCore::DOMApplicationCache::toEventType):
              * loader/appcache/DOMApplicationCache.h:
              (WebCore::DOMApplicationCache::):
              (WebCore::DOMApplicationCache::setAttributeEventListener):
              (WebCore::DOMApplicationCache::getAttributeEventListener):
              (WebCore::DOMApplicationCache::clearAttributeEventListener):
              (WebCore::DOMApplicationCache::callEventListener):
              (WebCore::DOMApplicationCache::setOnchecking):
              (WebCore::DOMApplicationCache::onchecking):
              (WebCore::DOMApplicationCache::setOnerror):
              (WebCore::DOMApplicationCache::onerror):
              (WebCore::DOMApplicationCache::setOnnoupdate):
              (WebCore::DOMApplicationCache::onnoupdate):
              (WebCore::DOMApplicationCache::setOndownloading):
              (WebCore::DOMApplicationCache::ondownloading):
              (WebCore::DOMApplicationCache::setOnprogress):
              (WebCore::DOMApplicationCache::onprogress):
              (WebCore::DOMApplicationCache::setOnupdateready):
              (WebCore::DOMApplicationCache::onupdateready):
              (WebCore::DOMApplicationCache::setOncached):
              (WebCore::DOMApplicationCache::oncached):
              (WebCore::DOMApplicationCache::setOnobsolete):
              (WebCore::DOMApplicationCache::onobsolete):
              (WebCore::DOMApplicationCache::~DOMApplicationCache):
              * platform/KURLGoogle.cpp:
              (WebCore::protocolHostAndPortAreEqual):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6042aeab
  16. 17 Mar, 2009 1 commit
    • mitz@apple.com's avatar
      WebCore: · 9a306429
      mitz@apple.com authored
              Reviewed by Adam Roben.
      
              - WebCore part of adding a mechanism for controlling the caching of
                responses through WebFrameLoaderClient
      
              Mac already has such a mechanism, and this adds one for CFNetwork ports.
      
              * WebCore.vcproj/WebCore.vcproj: Added EmptyClients.h
              and ResourceLoaderCFNet.cpp.
      
              * loader/EmptyClients.h:
              (WebCore::EmptyFrameLoaderClient::shouldCacheResponse): Added an
              implementation that always returns true.
      
              * loader/FrameLoaderClient.h: Declared shouldCacheResponse().
      
              * loader/ResourceLoader.h: Ditto.
      
              * loader/cf/ResourceLoaderCFNet.cpp: Added.
              (WebCore::ResourceLoader::shouldCacheResponse): Added. Calls through to
              FrameLoaderClient::shouldCacheResponse().
      
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::shouldCacheResponse): Added an
              implementation that always returns true.
      
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::willCacheResponse): Added a call to
              ResourceHandleClient::shouldCacheResponse(). If the client returns
              false, return 0, which will prevent CFNetwork from caching the response.
      
      WebKit/win:
      
              Reviewed by Adam Roben.
      
              - WebKit part of adding a mechanism for controlling the caching of
                responses through WebFrameLoaderClient
      
              * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added the
              IWebResourceLoadDelegatePrivate3 interface, containing the new
              delegate method shouldCacheResponse().
      
              * Interfaces/IWebURLRequest.idl: Added the isEqual() method.
      
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::shouldCacheResponse): Implemented this new
              FrameLoaderDelegate method by calling through to the resource load
              delegate, if it implements shouldCacheResponse(), and returning true
              otherwise.
      
              * WebCoreSupport/WebFrameLoaderClient.h:
      
              * WebMutableURLRequest.cpp:
              (WebMutableURLRequest::isEqual): Added.
              (WebMutableURLRequest::setValue): Implemented.
      
              * WebMutableURLRequest.h: Declared isEqual().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a306429
  17. 16 Jan, 2009 1 commit
    • ap@webkit.org's avatar
      Reviewed by Anders Carlsson. · ffdf0fbe
      ap@webkit.org authored
              https://bugs.webkit.org/show_bug.cgi?id=23349
              Don't store obsolete caches in disk storage
      
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::load):
              (WebCore::ResourceLoader::scheduleLoadFallbackResourceFromApplicationCache):
              * loader/ResourceLoader.h:
              Don't maintain m_wasLoadedFromApplicationCache, which was never used.
      
              * loader/appcache/ApplicationCache.cpp: (WebCore::ApplicationCache::addResource):
              Assert that only implicit and dynamic resources can be added after the cache has been fully
              loaded and stored to disk database.
      
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::cacheDestroyed): Don't remove non-newest caches from disk
              database, as this is now done whenever the cache becomes obsolete.
              (WebCore::ApplicationCacheGroup::setNewestCache): Remove an obsolete cache from disk storage.
      
              * loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::cacheGroupDestroyed):
              A cache group that has never been saved should not be remembered in m_cacheHostSet. Changed
              the check to no longer rely on savedNewestCachePointer.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffdf0fbe
  18. 02 Jan, 2009 1 commit
    • ap@webkit.org's avatar
      Reviewed by Darin Adler. · fb96f8a2
      ap@webkit.org authored
              https://bugs.webkit.org/show_bug.cgi?id=23036
              <rdar://problem/6451666> Implement AppCache fallback entries (23036)
      
              Test: http/tests/appcache/fallback.html
      
              * loader/FrameLoader.cpp: (WebCore::FrameLoader::loadResourceSynchronously): Use fallback
              entries if normal loading fails.
      
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::shouldLoadResourceFromApplicationCache): Do not prevent normal
              loading for resources that match fallback namespaces - they are only loaded from the cache
              if that fails.
              (WebCore::DocumentLoader::getApplicationCacheFallbackResource): Get a fallback entry for
              resource from associated appcache, or from passed in one, if any.
              (WebCore::DocumentLoader::scheduleLoadFallbackResourceFromApplicationCache): If a fallback
              entry for resourse exists, add it to pending substitute loads.
      
              * loader/DocumentLoader.h: Added new functions for loading fallback data for resources.
      
              * loader/ResourceLoader.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::scheduleLoadFallbackResourceFromApplicationCache): This function
              is called when normal loading fails (which includes network failures, 4xx and 5xx responses,
              and cross-origin redirects) to load appcache fallback data instead. It can use either the
              cache that is associated with the browsing context, or a custom one if association is yet
              to take place.
              (WebCore::ResourceLoader::willSendRequest): Try using fallback data.
              (WebCore::ResourceLoader::didReceiveResponse): Ditto.
              (WebCore::ResourceLoader::didFail): Ditto.
      
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::didReceiveResponse): Locate an appropriate cache and load
              fallback data from it if loading fails. The browsing context may still be associated with
              its previous document here, so the cache to load from must be passed explicitly.
              (WebCore::MainResourceLoader::didFail): Ditto.
              (WebCore::MainResourceLoader::load): Remove unnecessary check and FIXME.
      
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::setFallbackURLs):
              (WebCore::ApplicationCache::urlMatchesFallbackNamespace):
              * loader/appcache/ApplicationCache.h:
              (WebCore::ApplicationCache::fallbackURLs):
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::cacheGroupForURL):
              (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
              (WebCore::ApplicationCacheStorage::store):
              (WebCore::ApplicationCacheStorage::loadCache):
              (WebCore::ApplicationCacheStorage::storeCopyOfCache):
              * loader/appcache/ApplicationCacheStorage.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::fallbackCacheForMainRequest):
              (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
              * loader/appcache/ApplicationCacheGroup.h:
              Implement fallback map saving and loading, pass it to the cache.
      
              * loader/appcache/ManifestParser.h: Use a correct data structure for fallback map - keys
              are matched by prefix, so HAshMap cannot be used.
      
              * loader/appcache/ManifestParser.cpp: (WebCore::parseManifest): Fix bugs in fallback section
              parsing.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb96f8a2
  19. 19 Dec, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · e8a753d4
      mitz@apple.com authored
              Reviewed by Sam Weinig.
      
              - avoid using the ResourceHandle-level credential storage, if any,
                unless the client opts to use it; when use of the credential
                storage is disallowed, all authentication challenges are sent to
                the client.
              - let the FrameLoaderClient decide whether to use the credential
                storage. 
      
              * loader/EmptyClients.h:
              (WebCore::EmptyFrameLoaderClient::shouldUseCredentialStorage): Added.
              Returns false.
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::shouldUseCredentialStorage): Added. Calls through
              to the FrameLoaderClient.
              * loader/FrameLoader.h: Declared shouldUseCredentialStorage().
              * loader/FrameLoaderClient.h: Declared shouldUseCredentialStorage().
              * loader/ResourceLoader.cpp: 
              (WebCore::ResourceLoader::shouldUseCredentialStorage): Added. Calls
              through to the FrameLoader.
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::shouldUseCredentialStorage): Implemented this
              ResourceHandleClient method.
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::shouldUseCredentialStorage): Added.
              Overrides the ResourceLoader implementation by letting the client
              supply the return value. If the client does not do this, continues
              with the ResourceLoader behavior of asking the FrameLoader.
              * loader/SubresourceLoader.h: Removed an unused #include and declared
              shouldUseCredentialStorage().
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::getShouldUseCredentialStorage):
              Added a default implementation which returns false, meaning the client
              does not wish to decide whether the credential storage should be used.
              * platform/network/ResourceHandle.h: Removed unused forward declarations.
              Declared a new member function, shouldUseCredentialStorage(), on Mac and
              CFNetwork-using builds.
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::shouldUseCredentialStorage): Added this
              default implementation that returns false.
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::findCFNetworkModule): Added. Returns a handle to the CFNetwork
              module.
              (WebCore::cfNetworkVersion): Added. Returns the high word of the
              CFNetwork library's product version.
              (WebCore::highestSupportedCFURLConnectionClientVersion): Added. Returns
              the highest version of the CFURLConnectionClient structure supported by
              the CFNetwork library. The only reason to check this at runtime is
              that WebKit may be linking at runtime against an older version of
              CFNetwork than the one it was built with, as is the case with nightly
              builds.
              (WebCore::shouldUseCredentialStorageCallback): Added this
              CFURLConnection callback which calls through to
              ResourceHandle::shouldUseCredentialStorage().
              (WebCore::ResourceHandle::start): Pass a version 3 CFURLConnectionClient
              including the shouldUseCredentialStorage callback. At runtime, clamp the
              client structure version down to the highest supported by CFNetwork.
              (WebCore::ResourceHandle::shouldUseCredentialStorage): Added. Calls through
              to the client if there is one. Otherwise returns false.
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::shouldUseCredentialStorage): Ditto.
              (-[WebCoreResourceHandleAsDelegate connectionShouldUseCredentialStorage:]):
              Added this delegate method which callls through to
              ResourceHandle::shouldUseCredentialStorage().
      
      WebKit/gtk:
      
              Reviewed by Sam Weinig.
      
              - stub out FrameLoaderClient::shouldUseCredentialStorage().
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::shouldUseCredentialStorage):
              * WebCoreSupport/FrameLoaderClientGtk.h:
      
      WebKit/mac:
      
              Reviewed by Sam Weinig.
      
              - implement FrameLoaderClient::shouldUseCredentialStorage() by calling
                a new resource load delegae method.
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the
              delegate method. If the method is unimplemented, returns true for
              backwards compatibility.
              * WebView/WebView.mm: 
              (-[WebView _cacheResourceLoadDelegateImplementations]): Initialize the
              shouldUseCredentialStorageFunc member.
              (CallResourceLoadDelegateReturningBoolean): Added.
              * WebView/WebViewInternal.h:
              * WebView/WebResourceLoadDelegatePrivate.h: Declared the delegate method
              -webView:resource:shouldUseCredentialStorageForDataSource:.
      
      WebKit/qt:
      
              Reviewed by Sam Weinig.
      
              - stub out FrameLoaderClient::shouldUseCredentialStorage().
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      WebKit/win:
      
              Reviewed by Sam Weinig.
      
              - implement FrameLoaderClient::shouldUseCredentialStorage() by calling
                a new resource load delegae method.
      
              * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added
              a ne interface, IWebResourceLoadDelegatePrivate2, including a new
              method, shouldUseCredentialStorage().
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the
              delegate method. If the method is unimplemented, returns true for
              backwards compatibility.
              * WebCoreSupport/WebFrameLoaderClient.h:
      
      WebKit/wx:
      
              Reviewed by Sam Weinig.
      
              - stub out FrameLoaderClient::shouldUseCredentialStorage().
      
              * WebKitSupport/FrameLoaderClientWx.cpp:
              (WebCore::FrameLoaderClientWx::shouldUseCredentialStorage):
              * WebKitSupport/FrameLoaderClientWx.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8a753d4
  20. 29 Jul, 2008 1 commit
    • weinig@apple.com's avatar
      WebCore: · a244b918
      weinig@apple.com authored
      2008-07-29  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              <rdar://problem/6084585> Investigate upload progress events.
      
              - Add progress notifications for data being sent via a ResourceHandle.
              - Add XMLHttpRequestUpload support.
      
              Upload notifications only work on the Mac right now as the CFNetwork API
              on windows does not expose enough information.
      
              Tests: http/tests/xmlhttprequest/upload-onload-event.html
                     http/tests/xmlhttprequest/upload-onloadstart-event.html
                     http/tests/xmlhttprequest/upload-onprogress-event.html
                     http/tests/xmlhttprequest/upload-progress-events.html
      
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSEventTargetBase.cpp:
              (WebCore::toJS):
              * bindings/js/JSXMLHttpRequestCustom.cpp:
              (WebCore::JSXMLHttpRequest::mark):
              * bindings/js/JSXMLHttpRequestUploadCustom.cpp: Added.
              (WebCore::JSXMLHttpRequestUpload::mark):
              (WebCore::JSXMLHttpRequestUpload::onabort):
              (WebCore::JSXMLHttpRequestUpload::setOnabort):
              (WebCore::JSXMLHttpRequestUpload::onerror):
              (WebCore::JSXMLHttpRequestUpload::setOnerror):
              (WebCore::JSXMLHttpRequestUpload::onload):
              (WebCore::JSXMLHttpRequestUpload::setOnload):
              (WebCore::JSXMLHttpRequestUpload::onloadstart):
              (WebCore::JSXMLHttpRequestUpload::setOnloadstart):
              (WebCore::JSXMLHttpRequestUpload::onprogress):
              (WebCore::JSXMLHttpRequestUpload::setOnprogress):
              (WebCore::JSXMLHttpRequestUpload::addEventListener):
              (WebCore::JSXMLHttpRequestUpload::removeEventListener):
              (WebCore::JSXMLHttpRequestUpload::dispatchEvent):
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toXMLHttpRequestUpload):
              * dom/EventTarget.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didSendData):
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didSendData):
              * loader/SubresourceLoader.h:
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::didSendData):
              * page/DOMWindow.idl:
              * platform/network/FormData.cpp:
              (WebCore::FormData::FormData):
              * platform/network/FormData.h:
              (WebCore::FormData::alwaysStream):
              (WebCore::FormData::setAlwaysStream):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::didSendData):
              * platform/network/mac/FormDataStreamMac.h:
              * platform/network/mac/FormDataStreamMac.mm:
              (WebCore::getStreamFormDataMap):
              (WebCore::getStreamResourceHandleMap):
              (WebCore::associateStreamWithResourceHandle):
              (WebCore::disassociateStreamWithResourceHandle):
              (WebCore::DidSendDataCallbackData::DidSendDataCallbackData):
              (WebCore::performDidSendDataCallback):
              (WebCore::formCreate):
              (WebCore::formFinalize):
              (WebCore::formRead):
              (WebCore::setHTTPBody):
              (WebCore::httpBodyFromStream):
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::cancel):
              (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
              (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
              (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::upload):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::createRequest):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::networkError):
              (WebCore::XMLHttpRequest::abortError):
              (WebCore::XMLHttpRequest::didSendData):
              * xml/XMLHttpRequest.h:
              (WebCore::XMLHttpRequest::optionalUpload):
              * xml/XMLHttpRequest.idl:
              * xml/XMLHttpRequestUpload.cpp: Added.
              (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
              (WebCore::XMLHttpRequestUpload::addEventListener):
              (WebCore::XMLHttpRequestUpload::removeEventListener):
              (WebCore::XMLHttpRequestUpload::dispatchEvent):
              (WebCore::XMLHttpRequestUpload::dispatchXMLHttpRequestProgressEvent):
              (WebCore::XMLHttpRequestUpload::dispatchAbortEvent):
              (WebCore::XMLHttpRequestUpload::dispatchErrorEvent):
              (WebCore::XMLHttpRequestUpload::dispatchLoadEvent):
              (WebCore::XMLHttpRequestUpload::dispatchLoadStartEvent):
              (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
              * xml/XMLHttpRequestUpload.h: Added.
              (WebCore::XMLHttpRequestUpload::create):
              (WebCore::XMLHttpRequestUpload::toXMLHttpRequestUpload):
              (WebCore::XMLHttpRequestUpload::associatedXMLHttpRequest):
              (WebCore::XMLHttpRequestUpload::disconnectXMLHttpRequest):
              (WebCore::XMLHttpRequestUpload::setOnAbortListener):
              (WebCore::XMLHttpRequestUpload::onAbortListener):
              (WebCore::XMLHttpRequestUpload::setOnErrorListener):
              (WebCore::XMLHttpRequestUpload::onErrorListener):
              (WebCore::XMLHttpRequestUpload::setOnLoadListener):
              (WebCore::XMLHttpRequestUpload::onLoadListener):
              (WebCore::XMLHttpRequestUpload::setOnLoadStartListener):
              (WebCore::XMLHttpRequestUpload::onLoadStartListener):
              (WebCore::XMLHttpRequestUpload::setOnProgressListener):
              (WebCore::XMLHttpRequestUpload::onProgressListener):
              (WebCore::XMLHttpRequestUpload::eventListeners):
              (WebCore::XMLHttpRequestUpload::refEventTarget):
              (WebCore::XMLHttpRequestUpload::derefEventTarget):
              * xml/XMLHttpRequestUpload.idl: Added.
      
      LayoutTests:
      
      2008-07-29  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              <rdar://problem/6084585> Investigate upload progress events
      
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/xmlhttprequest/upload-onload-event-expected.txt: Added.
              * http/tests/xmlhttprequest/upload-onload-event.html: Added.
              * http/tests/xmlhttprequest/upload-onloadstart-event-expected.txt: Added.
              * http/tests/xmlhttprequest/upload-onloadstart-event.html: Added.
              * http/tests/xmlhttprequest/upload-onprogress-event-expected.txt: Added.
              * http/tests/xmlhttprequest/upload-onprogress-event.html: Added.
              * http/tests/xmlhttprequest/upload-progress-events-expected.txt: Added.
              * http/tests/xmlhttprequest/upload-progress-events.html: Added.
              * platform/win/Skipped: Skip new tests on windows where the feature is not
              implemented yet.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a244b918
  21. 21 Apr, 2008 1 commit
    • andersca@apple.com's avatar
      2008-04-21 Anders Carlsson <andersca@apple.com> · 875b865c
      andersca@apple.com authored
              Reviewed by Adam.
      
              Make it possible to load resources from the cache. 
              (Currently no documents are ever associated with a cache though.)
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::setPrimaryLoadComplete):
              (WebCore::DocumentLoader::mainResourceApplicationCache):
              (WebCore::DocumentLoader::scheduleApplicationCacheLoad):
              * loader/DocumentLoader.h:
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::didFinishLoading):
              (WebCore::MainResourceLoader::load):
              * loader/MainResourceLoader.h:
              (WebCore::MainResourceLoader::applicationCache):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::load):
              * loader/ResourceLoader.h:
              * loader/appcache/ApplicationCacheGroup.h:
              (WebCore::ApplicationCacheGroup::finishedLoadingMainResource):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      875b865c
  22. 29 Mar, 2008 1 commit
    • weinig@apple.com's avatar
      2008-03-29 Sam Weinig <sam@webkit.org> · d7e4e3a7
      weinig@apple.com authored
              Reviewed by Darin Adler.
      
              Fix for <rdar://problem/5828873>
      
              Since NSURL is allowing invalid urls to be loaded, we need to
              check the URL validity at the ResourceHandle level and fire off
              a cannotShowURL error.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::cannotShowURLError):
              * loader/FrameLoader.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::cannotShowURLError):
              (WebCore::ResourceLoader::wasBlocked):
              (WebCore::ResourceLoader::cannotShowURL):
              * loader/ResourceLoader.h:
              * platform/KURL.h:
              (WebCore::KURL::isValid):
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::create):
              (WebCore::ResourceHandle::scheduleFailure):
              (WebCore::ResourceHandle::fireFailure):
              (WebCore::portAllowed):
              * platform/network/ResourceHandle.h:
              (WebCore::ResourceHandle::):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::cannotShowURL):
              * platform/network/ResourceHandleInternal.h:
              (WebCore::ResourceHandleInternal::ResourceHandleInternal):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7e4e3a7
  23. 20 Mar, 2008 3 commits
  24. 25 Feb, 2008 1 commit
    • mrowe@apple.com's avatar
      2008-02-25 MorganL <morganl.webkit@yahoo.com> · fd3abd67
      mrowe@apple.com authored
              Reviewed by Darin Adler.
      
              Eliminate some #ifdefs from headers in platform/network.
              http://bugs.webkit.org/show_bug.cgi?id=11786
      
              * WebCore.base.exp:
              * WebCore.order:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/XMLTokenizer.cpp:
              * loader/ResourceLoader.h:
              * platform/network/AuthenticationChallenge.cpp: Removed.
              * platform/network/AuthenticationChallenge.h: Removed.
              * platform/network/AuthenticationChallengeBase.cpp: Copied from platform/network/AuthenticationChallenge.cpp.
              (WebCore::AuthenticationChallengeBase::AuthenticationChallengeBase):
              (WebCore::AuthenticationChallengeBase::previousFailureCount):
              (WebCore::AuthenticationChallengeBase::proposedCredential):
              (WebCore::AuthenticationChallengeBase::protectionSpace):
              (WebCore::AuthenticationChallengeBase::failureResponse):
              (WebCore::AuthenticationChallengeBase::error):
              (WebCore::AuthenticationChallengeBase::isNull):
              (WebCore::AuthenticationChallengeBase::nullify):
              (WebCore::AuthenticationChallengeBase::compare):
              * platform/network/AuthenticationChallengeBase.h: Copied from platform/network/AuthenticationChallenge.h.
              (WebCore::AuthenticationChallengeBase::platformCompare):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/network/ResourceError.cpp: Removed.
              * platform/network/ResourceError.h: Removed.
              * platform/network/ResourceErrorBase.cpp: Copied from platform/network/ResourceError.cpp.
              (WebCore::ResourceErrorBase::lazyInit):
              (WebCore::ResourceErrorBase::compare):
              * platform/network/ResourceErrorBase.h: Copied from platform/network/ResourceError.h.
              (WebCore::ResourceErrorBase::isNull):
              (WebCore::ResourceErrorBase::domain):
              (WebCore::ResourceErrorBase::errorCode):
              (WebCore::ResourceErrorBase::failingURL):
              (WebCore::ResourceErrorBase::localizedDescription):
              (WebCore::ResourceErrorBase::ResourceErrorBase):
              (WebCore::ResourceErrorBase::platformLazyInit):
              (WebCore::ResourceErrorBase::platformCompare):
              (WebCore::operator==):
              * platform/network/ResourceResponseBase.cpp:
              (WebCore::ResourceResponseBase::isHTTP):
              (WebCore::ResourceResponseBase::url):
              (WebCore::ResourceResponseBase::setUrl):
              (WebCore::ResourceResponseBase::mimeType):
              (WebCore::ResourceResponseBase::setMimeType):
              (WebCore::ResourceResponseBase::expectedContentLength):
              (WebCore::ResourceResponseBase::setExpectedContentLength):
              (WebCore::ResourceResponseBase::textEncodingName):
              (WebCore::ResourceResponseBase::setTextEncodingName):
              (WebCore::ResourceResponseBase::suggestedFilename):
              (WebCore::ResourceResponseBase::setSuggestedFilename):
              (WebCore::ResourceResponseBase::httpStatusCode):
              (WebCore::ResourceResponseBase::setHTTPStatusCode):
              (WebCore::ResourceResponseBase::httpStatusText):
              (WebCore::ResourceResponseBase::setHTTPStatusText):
              (WebCore::ResourceResponseBase::httpHeaderField):
              (WebCore::ResourceResponseBase::setHTTPHeaderField):
              (WebCore::ResourceResponseBase::httpHeaderFields):
              (WebCore::ResourceResponseBase::isAttachment):
              (WebCore::ResourceResponseBase::setExpirationDate):
              (WebCore::ResourceResponseBase::expirationDate):
              (WebCore::ResourceResponseBase::setLastModifiedDate):
              (WebCore::ResourceResponseBase::lastModifiedDate):
              (WebCore::ResourceResponseBase::lazyInit):
              (WebCore::ResourceResponseBase::compare):
              * platform/network/ResourceResponseBase.h:
              (WebCore::ResourceResponseBase::ResourceResponseBase):
              (WebCore::ResourceResponseBase::platformLazyInit):
              (WebCore::ResourceResponseBase::platformCompare):
              (WebCore::operator==):
              * platform/network/cf/AuthenticationCF.cpp:
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/cf/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sourceHandle):
              (WebCore::AuthenticationChallenge::cfURLAuthChallengeRef):
              * platform/network/cf/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/cf/ResourceErrorCF.cpp:
              (WebCore::ResourceError::ResourceError):
              (WebCore::ResourceError::platformLazyInit):
              (WebCore::ResourceError::platformCompare):
              (WebCore::ResourceError::operator CFStreamError):
              * platform/network/cf/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/cf/ResourceResponseCFNet.cpp:
              (WebCore::ResourceResponse::platformLazyInit):
              * platform/network/curl/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              * platform/network/curl/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/curl/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/mac/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sender):
              (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
              * platform/network/mac/AuthenticationMac.mm:
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/mac/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/mac/ResourceErrorMac.mm:
              (WebCore::ResourceError::platformLazyInit):
              (WebCore::ResourceError::platformCompare):
              * platform/network/mac/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/mac/ResourceResponseMac.mm:
              (WebCore::ResourceResponse::platformLazyInit):
              (WebCore::ResourceResponse::platformCompare):
              * platform/network/qt/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              * platform/network/qt/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/qt/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              * xml/XSLTProcessor.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd3abd67
  25. 17 Jan, 2008 1 commit
    • andersca@apple.com's avatar
      Reviewed by Oliver. · bf21198f
      andersca@apple.com authored
              <rdar://problem/5636742>
              CrashTracer: [USER] 1302 crashes in Safari at com.apple.WebCore: WTF::Vector<char, 0ul>::reserveCapacity + 78
              
              When loading full-frame plug-ins, disable buffering data for the main resource loader. Otherwise, this can cause us
              to crash when loading large files such as movies in the browser. We already do this for embedded plug-ins.
              
              * WebCore.base.exp:
              * loader/DocumentLoader.h:
              (WebCore::DocumentLoader::mainResourceLoader):
              New accessor method.
              
              * loader/PluginDocument.cpp:
              (WebCore::PluginTokenizer::writeRawData):
              Disable buffering for the main resource loader.
              
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::setShouldBufferData):
              * loader/ResourceLoader.h:
              Have this free the buffer when disabling buffering.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf21198f
  26. 18 Dec, 2007 1 commit
    • beidson@apple.com's avatar
      Reviewed by Adele · f76ac80a
      beidson@apple.com authored
              <rdar://problem/5525770> REGRESSION: HTTP Auth protected favicon request results in a password sheet
      
              Some http-auth protected sites have the main resource(s) unprotected, but many subresources are
              protected by authentication.  Occasionally one can view the main page of a site but the favicon
              is behind the iron curtain - in these cases, we should *not* prompt for a username and password
              solely for the favicon.
      
              * loader/ResourceLoader.h: Make didReceiveAuthenticationChallenge virtual
      
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::didReceiveAuthenticationChallenge): Now that this method
                is virtual from ResourceLoader, SubresourceLoader can override.  First call to the 
                SubresourceLoaderClient.  If they cancel the resource load, return early. Otherwise, let
                ResourceLoader work its magic (resulting in the auth sheet coming down)
              * loader/SubresourceLoader.h:
      
              * loader/SubresourceLoaderClient.h:
              (WebCore::SubresourceLoaderClient::didReceiveAuthenticationChallenge):
      
              * loader/icon/IconLoader.cpp:
              (WebCore::IconLoader::didReceiveAuthenticationChallenge): Cancel the resource load, since we should
                never prompt the user for credentials just for a favicon.
              * loader/icon/IconLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f76ac80a
  27. 13 Nov, 2007 2 commits
    • ggaren@apple.com's avatar
      JavaScriptCore: · 58ea1c13
      ggaren@apple.com authored
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * API/JSClassRef.h:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.h:
              * kjs/regexp.h:
              * wtf/RefCounted.h: Copied from JavaScriptCore/wtf/Shared.h.
              (WTF::RefCounted::RefCounted):
              * wtf/Shared.h: Removed.
      
      JavaScriptGlue:
      
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
      
      WebCore:
      
              Reviewed by Anders Carlsson.
      
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from WebCore/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Attribute.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilter.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/QualifiedName.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * editing/EditCommand.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.cpp:
              (WebCore::HistoryItem::HistoryItem):
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyle.cpp:
              (WebCore::SVGRenderStyle::SVGRenderStyle):
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              (StyleFillData::StyleFillData):
              (StyleStrokeData::StyleStrokeData):
              (StyleStopData::StyleStopData):
              (StyleTextData::StyleTextData):
              (StyleClipData::StyleClipData):
              (StyleMaskData::StyleMaskData):
              (StyleMarkerData::StyleMarkerData):
              (StyleMiscData::StyleMiscData):
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAngle.cpp:
              (WebCore::SVGAngle::SVGAngle):
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/Frame.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/Cursor.h:
              * platform/DeprecatedValueListImpl.cpp:
              (WebCore::DeprecatedValueListImpl::Private::Private):
              * platform/FileChooser.h:
              * platform/FontFallbackList.h:
              * platform/FontFamily.cpp:
              (WebCore::FontFamily::FontFamily):
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.cpp:
              (WebCore::FormData::FormData):
              * platform/network/FormData.h:
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleSurroundData::StyleSurroundData):
              (WebCore::StyleBoxData::StyleBoxData):
              (WebCore::StyleVisualData::StyleVisualData):
              (WebCore::StyleBackgroundData::StyleBackgroundData):
              (WebCore::StyleMarqueeData::StyleMarqueeData):
              (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
              (WebCore::StyleMultiColData::StyleMultiColData):
              (WebCore::StyleTransformData::StyleTransformData):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareInheritedData::StyleRareInheritedData):
              (WebCore::StyleInheritedData::StyleInheritedData):
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              (WebCore::SVGCharOnPath::SVGCharOnPath):
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLHttpRequest.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
              * xml/XPathValue.h:
              * xml/XSLTProcessor.h:
      
      WebKit/mac:
      
              Reviewed by Anders Carlsson.
              
              Renamed Shared to RefCounted.
      
              * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
              * ForwardingHeaders/wtf/Shared.h: Removed.
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58ea1c13
    • ggaren@apple.com's avatar
      JavaScriptCore: · 7911af29
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Deployed
              Shared in places where JSCore previously had hand-rolled ref-counting
              classes.
      
              * API/JSClassRef.cpp:
              (OpaqueJSClass::OpaqueJSClass):
              * API/JSClassRef.h:
              * API/JSObjectRef.cpp:
              (JSClassRetain):
              (JSClassRelease):
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.cpp:
              (KJS::Interpreter::init):
              * kjs/interpreter.h:
              * kjs/regexp.cpp:
              (KJS::RegExp::RegExp):
              * kjs/regexp.h:
              * wtf/Shared.h: Copied from WebCore/platform/Shared.h.
      
      JavaScriptGlue:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
      
      WebCore:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Retained 
              TreeShared, but moved it to its own file, TreeShared.h.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/FontFallbackList.h:
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/Shared.h: Removed.
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
      
      WebKit/mac:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ChangeLog:
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7911af29
  28. 28 Aug, 2007 1 commit
    • andersca's avatar
      WebCore: · 2d985c78
      andersca authored
              Reviewed by Darin.
      
              <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
              
              Add a shouldContentSniff flag to ResourceLoader and ResourceHandle and have XMLHttpRequest 
              pass in false when creating its subresource loader.
              
              * WebCore.exp:
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::MainResourceLoader):
              (WebCore::MainResourceLoader::loadNow):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::load):
              * loader/ResourceLoader.h:
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::SubresourceLoader):
              (WebCore::SubresourceLoader::create):
              * loader/SubresourceLoader.h:
              * loader/mac/NetscapePlugInStreamLoaderMac.mm:
              (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
              * platform/mac/WebCoreSystemInterface.h:
              * platform/mac/WebCoreSystemInterface.mm:
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::ResourceHandle):
              (WebCore::ResourceHandle::create):
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleInternal.h:
              (WebCore::ResourceHandleInternal::ResourceHandleInternal):
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::start):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::send):
      
      WebKit:
      
              Reviewed by Darin.
      
              <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
              
              Expose WKSetNSURLRequestShouldContentSniff to WebCore.
              
              * WebCoreSupport/WebSystemInterface.m:
              (InitWebCoreSystemInterface):
      
      LayoutTests:
      
              Reviewed by Darin.
      
              <rdar://problem/5298296> XMLHttpRequest readyState 3 & responseText buffer issues
              
              * http/tests/xmlhttprequest/resources/small-chunks.cgi: Added.
              * http/tests/xmlhttprequest/small-chunks-response-text-expected.txt: Added.
              * http/tests/xmlhttprequest/small-chunks-response-text.html: Added.
              * platform/mac-leopard/Skipped:
              * platform/mac-tiger/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d985c78
  29. 03 Aug, 2007 1 commit
    • andersca's avatar
      Reviewed by Oliver. · 728f124b
      andersca authored
              <rdar://problem/5383286>
              XMLHTTPRequest does not return 401 when user cancels authentication dialog (affects .Mac)
              
              * loader/ResourceLoader.h:
              Make receivedCancellation virtual.
              
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::receivedCancellation):
              Call SubresourceLoaderClient::receivedCancellation.
              
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::receivedCancellation):
              Save the failure response.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      728f124b
  30. 19 Jul, 2007 1 commit
    • andersca's avatar
      Reviewed by Adam. · 815070c6
      andersca authored
              <rdar://problem/5334742>
              Windows Beta: Crash playing a very large QuickTime movie in Safari
              
              <rdar://problem/5271174>
              http://bugs.webkit.org/show_bug.cgi?id=14148
              LEAK: Serious memory consumption and leak when loading QT movies.
              
              Don't keep plugin stream data in memory since some plugin resources (like QT movies)
              can be really big. If a plug-in wants data in a file, create a file and write data to it 
              as it's coming from the wire, instead of using a big buffer.
              
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::addData):
              (WebCore::ResourceLoader::willStopBufferingData):
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::setShouldBufferData):
              * plugins/win/PluginStreamWin.cpp:
              (WebCore::PluginStreamWin::PluginStreamWin):
              (WebCore::PluginStreamWin::start):
              (WebCore::PluginStreamWin::startStream):
              (WebCore::PluginStreamWin::destroyStream):
              (WebCore::PluginStreamWin::didReceiveData):
              (WebCore::PluginStreamWin::didFinishLoading):
              * plugins/win/PluginStreamWin.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      815070c6
  31. 22 Jun, 2007 1 commit
    • andersca's avatar
      LayoutTests: · d92451d1
      andersca authored
              Reviewed by Geoff.
      
              <rdar://problem/5244734>
              WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari)
      
              * fast/loader/resources/user-style-sheet.css: Added.
              * fast/loader/user-style-sheet-resource-load-callbacks.html: Added.
      
      WebCore:
      
              Reviewed by Maciej and Geoff.
      
              <rdar://problem/5244734>
              WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari)
              
              Add a sendResourceLoadCallbacks argument to the ResourceLoader and only send resource load callbacks if it's true. Make it so that
              loading the user style sheet creates a resource loader with sendResourceLoadCallbacks set to false (done by adding a sendResourceLoadCallbacks 
              argument to a bunch of classes).
              
              * loader/Cache.cpp:
              (WebCore::createResource):
              (WebCore::Cache::requestResource):
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::CachedResource):
              * loader/CachedResource.h:
              (WebCore::CachedResource::sendResourceLoadCallbacks):
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::requestCSSStyleSheet):
              (WebCore::DocLoader::requestResource):
              (WebCore::DocLoader::checkCacheObjectStatus):
              * loader/DocLoader.h:
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::MainResourceLoader):
              * loader/Request.cpp:
              (WebCore::Request::Request):
              * loader/Request.h:
              (WebCore::Request::sendResourceLoadCallbacks):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::willSendRequest):
              (WebCore::ResourceLoader::didReceiveResponse):
              (WebCore::ResourceLoader::didReceiveData):
              (WebCore::ResourceLoader::didFinishLoadingOnePart):
              (WebCore::ResourceLoader::didFail):
              (WebCore::ResourceLoader::didCancel):
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::sendResourceLoadCallbacks):
              * loader/SubresourceLoader.cpp:
              (WebCore::SubresourceLoader::SubresourceLoader):
              (WebCore::SubresourceLoader::create):
              * loader/SubresourceLoader.h:
              * loader/loader.cpp:
              (WebCore::Loader::load):
              (WebCore::Loader::servePendingRequests):
              * loader/loader.h:
              * loader/mac/NetscapePlugInStreamLoaderMac.mm:
              (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d92451d1
  32. 18 Apr, 2007 1 commit
    • beidson's avatar
      LayoutTests: · a5e83332
      beidson authored
              Reviewed by Tim
      
              <rdar://problem/5008925>
              Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
      
              * http/tests/misc/willCacheResponse-delegate-callback-expected.txt: Added.
              * http/tests/misc/willCacheResponse-delegate-callback.html: Added.
      
      WebCore:
      
              Reviewed by Tim
      
              <rdar://problem/5008925>
              Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
      
              * WebCore.xcodeproj/project.pbxproj: Added ResourceLoaderMac.mm
      
              * loader/FrameLoaderClient.h: Add the willCacheResponse SPI for WebKit to implement
      
              * loader/ResourceLoader.h:
              * loader/mac/ResourceLoaderMac.mm: Added.
              (WebCore::ResourceLoader::willCacheResponse): Return the new cachedResponse from the client
      
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::willCacheResponse): Stub
      
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::willCacheResponse):  Return the new cachedResponse from the client
      
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): Call to get the new 
                cachedURLResponse before calling for the cache policy
      
      WebKit:
      
              Reviewed by Tim
      
              <rdar://problem/5008925>
              Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::willCacheResponse): Call 
                [WebResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:];
      
              * WebView/WebView.mm:
              (-[WebView _cacheResourceLoadDelegateImplementations]): Pull out the willCacheResponse impl
      
              * WebView/WebViewPrivate.h: Add WebResourceLoadDelegatePrivate category for this new SPI
      
      WebKitTools:
      
              Reviewed by Tim
      
              <rdar://problem/5008925>
              Expose the NSURLConnection delegate willCacheResponse API to WebResourceLoadDelegate
      
              * DumpRenderTree/ResourceLoadDelegate.m:
              (-[ResourceLoadDelegate webView:resource:willCacheResponse:fromDataSource:]): 
                Add the willCacheResponse delegate call
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5e83332
  33. 15 Mar, 2007 1 commit
    • beidson's avatar
      LayoutTests: · d82d99fe
      beidson authored
              Reviewed by Adele
      
              <rdar://problem/4429701>
              Implements a port blocking black list that matches Firefox's
      
              The layout test attempts to load an image at an invalid domain name on each
              of the black listed ports.  Using dumpResourceLoadCallbacks(), DRT is able
              to see the error codes for each resource.  A successful test shows the blocked
              error for each image load except for the few that are standard or should 
              succeed due to exemptions.
      
              * security/block-test-expected.txt: Added.
              * security/block-test.html: Added.
      
      WebCore:
      
              Reviewed by Maciej
      
              <rdar://problem/4429701>
              Implements a port blocking black list that matches Firefox's
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::blockedError): Call through to the client for blockedError 
              * loader/FrameLoader.h:
      
              * loader/FrameLoaderClient.h: Get the "port blocked" error for the current platform
      
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::wasBlocked): ResourceHandleClient method to pass on the didFail(error)
              (WebCore::ResourceLoader::blockedError): Following the pattern of "CancelledError()", get the 
                error to fail with for the didFail() call
              * loader/ResourceLoader.h:
      
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::blockedError): Added stub
      
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::create): If the port is blocked, create the handle but schedule it for
                deferred failure on a timer
              (WebCore::ResourceHandle::scheduleBlockedFailure): Do the timer scheduling
              (WebCore::ResourceHandle::fireBlockedFailure): Fire the timer here
              (WebCore::ResourceHandle::portAllowed): Implements checking of Mozilla's
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::wasBlocked): Virtual for clients to get the "blocked" message
      
      WebKit:
      
              Reviewed by Maciej
      
              <rdar://problem/4429701>
              Implements a port blocking black list that matches Firefox's
      
              * English.lproj/Localizable.strings: Added localizable string for port blocked error code
      
              * Misc/WebKitErrors.h:
              * Misc/WebKitErrors.m:
              (registerErrors): Add new port blocked error code to WebKitErrorDomain
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::cancelledError): Fixed coding style
              (WebFrameLoaderClient::blockedError): Return a ResourceError with the new custom error code
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d82d99fe