Changeset 91102 in webkit


Ignore:
Timestamp:
Jul 15, 2011 1:35:17 PM (13 years ago)
Author:
psolanki@apple.com
Message:

Part of https://bugs.webkit.org/show_bug.cgi?id=63674
Get webkit to compile with USE(CFNETWORK) enabled on Mac

Reviewed by David Kilzer.

Minor changes needed to keep the compiler happy.

No new tests because no change in functionality.

  • platform/network/cf/FormDataStreamCFNet.cpp:
  • platform/network/cf/ResourceErrorCF.cpp:

(WebCore::ResourceError::platformCopy):

  • platform/network/cf/ResourceHandleCFNet.cpp:

(WebCore::WebCoreSynchronousLoaderClient::willSendRequest):

  • platform/network/cf/ResourceResponseCFNet.cpp:

(WebCore::toTimeT):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91097 r91102  
     12011-07-15  Pratik Solanki  <psolanki@apple.com>
     2
     3        Part of https://bugs.webkit.org/show_bug.cgi?id=63674
     4        Get webkit to compile with USE(CFNETWORK) enabled on Mac
     5
     6        Reviewed by David Kilzer.
     7
     8        Minor changes needed to keep the compiler happy.
     9
     10        No new tests because no change in functionality.
     11
     12        * platform/network/cf/FormDataStreamCFNet.cpp:
     13        * platform/network/cf/ResourceErrorCF.cpp:
     14        (WebCore::ResourceError::platformCopy):
     15        * platform/network/cf/ResourceHandleCFNet.cpp:
     16        (WebCore::WebCoreSynchronousLoaderClient::willSendRequest):
     17        * platform/network/cf/ResourceResponseCFNet.cpp:
     18        (WebCore::toTimeT):
     19
    1202011-07-15  Dan Bernstein  <mitz@apple.com>
    221
  • trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp

    r78508 r91102  
    3838#include <CFNetwork/CFURLRequestPriv.h>
    3939#include <CoreFoundation/CFStreamAbstract.h>
    40 #include <WebKitSystemInterface/WebKitSystemInterface.h>
    4140#include <sys/types.h>
    4241#include <wtf/Assertions.h>
     
    4443#include <wtf/RetainPtr.h>
    4544#include <wtf/text/CString.h>
     45
     46#if PLATFORM(MAC)
     47#include "WebCoreSystemInterface.h"
     48#elif PLATFORM(WIN)
     49#include <WebKitSystemInterface/WebKitSystemInterface.h>
     50#endif
    4651
    4752#define USE_V1_CFSTREAM_CALLBACKS
  • trunk/Source/WebCore/platform/network/cf/ResourceErrorCF.cpp

    r86416 r91102  
    3232#include <CoreFoundation/CFError.h>
    3333#include <CFNetwork/CFNetworkErrors.h>
     34#include <wtf/RetainPtr.h>
     35#include <wtf/UnusedParam.h>
     36
    3437#if PLATFORM(WIN)
    3538#include <WebKitSystemInterface/WebKitSystemInterface.h>
    3639#endif
    37 #include <WTF/RetainPtr.h>
    3840
    3941namespace WebCore {
     
    117119#if PLATFORM(WIN)
    118120    errorCopy.m_certificate = m_certificate;
     121#else
     122    UNUSED_PARAM(errorCopy);
    119123#endif
    120124}
  • trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp

    r91075 r91102  
    5555#include "WebCoreURLResponse.h"
    5656#include <CFNetwork/CFURLConnectionPriv.h>
     57#include <CFNetwork/CFURLRequestPriv.h>
    5758#endif
    5859
     
    839840    // FIXME: This needs to be fixed to follow the redirect correctly even for cross-domain requests.
    840841    if (!protocolHostAndPortAreEqual(handle->firstRequest().url(), request.url())) {
    841         ASSERT(!m_error);
     842        ASSERT(!m_error.cfError());
    842843        RetainPtr<CFErrorRef> cfError(AdoptCF, CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainCFNetwork, kCFURLErrorBadServerResponse, 0));
    843844        m_error = cfError.get();
  • trunk/Source/WebCore/platform/network/cf/ResourceResponseCFNet.cpp

    r87460 r91102  
    7373    static const double maxTimeAsDouble = std::numeric_limits<time_t>::max();
    7474    static const double minTimeAsDouble = std::numeric_limits<time_t>::min();
    75     return min(max(minTimeAsDouble, time + kCFAbsoluteTimeIntervalSince1970), maxTimeAsDouble);
     75    return static_cast<time_t>(min(max(minTimeAsDouble, time + kCFAbsoluteTimeIntervalSince1970), maxTimeAsDouble));
    7676}
    7777
Note: See TracChangeset for help on using the changeset viewer.