Changeset 70314 in webkit


Ignore:
Timestamp:
Oct 22, 2010 10:12:56 AM (14 years ago)
Author:
Patrick Gansterer
Message:

2010-10-22 Patrick Gansterer <Patrick Gansterer>

Reviewed by Adam Roben.

[WIN] Add stubs for SocketStream classes
https://bugs.webkit.org/show_bug.cgi?id=47983

  • platform/network/win/SocketStreamError.h: Copied from WebCore/platform/network/curl/SocketStreamError.h. (WebCore::SocketStreamError::SocketStreamError):
  • platform/network/win/SocketStreamHandle.h: Copied from WebCore/platform/network/curl/SocketStreamHandle.h. (WebCore::SocketStreamHandle::create):
  • platform/network/win/SocketStreamHandleWin.cpp: Copied from WebCore/platform/network/curl/SocketStreamHandleCurl.cpp.
Location:
trunk/WebCore
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70312 r70314  
     12010-10-22  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Reviewed by Adam Roben.
     4
     5        [WIN] Add stubs for SocketStream classes
     6        https://bugs.webkit.org/show_bug.cgi?id=47983
     7
     8        * platform/network/win/SocketStreamError.h: Copied from WebCore/platform/network/curl/SocketStreamError.h.
     9        (WebCore::SocketStreamError::SocketStreamError):
     10        * platform/network/win/SocketStreamHandle.h: Copied from WebCore/platform/network/curl/SocketStreamHandle.h.
     11        (WebCore::SocketStreamHandle::create):
     12        * platform/network/win/SocketStreamHandleWin.cpp: Copied from WebCore/platform/network/curl/SocketStreamHandleCurl.cpp.
     13
    1142010-10-22  Patrick Gansterer  <paroga@webkit.org>
    215
  • trunk/WebCore/platform/network/win/SocketStreamError.h

    r70142 r70314  
    3636namespace WebCore {
    3737
    38     class SocketStreamError : public SocketStreamErrorBase {
    39     public:
    40         SocketStreamError() { }
    41         explicit SocketStreamError(int errorCode)
    42             : SocketStreamErrorBase(errorCode)
    43         {
    44         }
     38class SocketStreamError : public SocketStreamErrorBase {
     39public:
     40    SocketStreamError() { }
     41    explicit SocketStreamError(int errorCode)
     42        : SocketStreamErrorBase(errorCode)
     43    {
     44    }
    4545
    46     };
     46};
    4747
    48 }  // namespace WebCore
     48} // namespace WebCore
    4949
    50 #endif  // SocketStreamError_h
     50#endif // SocketStreamError_h
  • trunk/WebCore/platform/network/win/SocketStreamHandle.h

    r70142 r70314  
    4040namespace WebCore {
    4141
    42     class AuthenticationChallenge;
    43     class Credential;
    44     class SocketStreamHandleClient;
     42class AuthenticationChallenge;
     43class Credential;
     44class SocketStreamHandleClient;
    4545
    46     class SocketStreamHandle : public RefCounted<SocketStreamHandle>, public SocketStreamHandleBase {
    47     public:
    48         static PassRefPtr<SocketStreamHandle> create(const KURL& url, SocketStreamHandleClient* client) { return adoptRef(new SocketStreamHandle(url, client)); }
     46class SocketStreamHandle : public RefCounted<SocketStreamHandle>, public SocketStreamHandleBase {
     47public:
     48    static PassRefPtr<SocketStreamHandle> create(const KURL& url, SocketStreamHandleClient* client) { return adoptRef(new SocketStreamHandle(url, client)); }
    4949
    50         virtual ~SocketStreamHandle();
     50    virtual ~SocketStreamHandle();
    5151
    52     protected:
    53         virtual int platformSend(const char* data, int length);
    54         virtual void platformClose();
     52protected:
     53    virtual int platformSend(const char* data, int length);
     54    virtual void platformClose();
    5555
    56     private:
    57         SocketStreamHandle(const KURL&, SocketStreamHandleClient*);
     56private:
     57    SocketStreamHandle(const KURL&, SocketStreamHandleClient*);
    5858
    59         // No authentication for streams per se, but proxy may ask for credentials.
    60         void didReceiveAuthenticationChallenge(const AuthenticationChallenge&);
    61         void receivedCredential(const AuthenticationChallenge&, const Credential&);
    62         void receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&);
    63         void receivedCancellation(const AuthenticationChallenge&);
    64     };
     59    // No authentication for streams per se, but proxy may ask for credentials.
     60    void didReceiveAuthenticationChallenge(const AuthenticationChallenge&);
     61    void receivedCredential(const AuthenticationChallenge&, const Credential&);
     62    void receivedRequestToContinueWithoutCredential(const AuthenticationChallenge&);
     63    void receivedCancellation(const AuthenticationChallenge&);
     64};
    6565
    66 }  // namespace WebCore
     66} // namespace WebCore
    6767
    68 #endif  // SocketStreamHandle_h
     68#endif // SocketStreamHandle_h
  • trunk/WebCore/platform/network/win/SocketStreamHandleWin.cpp

    r70142 r70314  
    8787}
    8888
    89 }  // namespace WebCore
     89} // namespace WebCore
Note: See TracChangeset for help on using the changeset viewer.