⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176686 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 12:53:40 PM (12 years ago)
Author:
andersca@apple.com
Message:

Remove more Windows cruft
https://bugs.webkit.org/show_bug.cgi?id=139189

Reviewed by Andreas Kling.

  • WebCoreSupport/WebFrameLoaderClient.cpp:

(WebFrameLoaderClient::createNetworkingContext):

  • WebCoreSupport/WebFrameNetworkingContext.h:

(WebFrameNetworkingContext::create):
(WebFrameNetworkingContext::WebFrameNetworkingContext):
(WebFrameNetworkingContext::userAgent): Deleted.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/platform/network/NetworkingContext.h

    r176598 r176686  
    6464
    6565#if PLATFORM(WIN)
    66     virtual String userAgent() const = 0;
    67     virtual String referrer() const = 0;
    6866    virtual ResourceError blockedError(const ResourceRequest&) const = 0;
    6967#endif
  • trunk/Source/WebKit/win/ChangeLog

    r176670 r176686  
     12014-12-02  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove more Windows cruft
     4        https://bugs.webkit.org/show_bug.cgi?id=139189
     5
     6        Reviewed by Andreas Kling.
     7
     8        * WebCoreSupport/WebFrameLoaderClient.cpp:
     9        (WebFrameLoaderClient::createNetworkingContext):
     10        * WebCoreSupport/WebFrameNetworkingContext.h:
     11        (WebFrameNetworkingContext::create):
     12        (WebFrameNetworkingContext::WebFrameNetworkingContext):
     13        (WebFrameNetworkingContext::userAgent): Deleted.
     14
    1152014-12-02  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp

    r172977 r176686  
    12721272PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext()
    12731273{
    1274     return WebFrameNetworkingContext::create(core(m_webFrame), userAgent(m_webFrame->url()));
     1274    return WebFrameNetworkingContext::create(core(m_webFrame));
    12751275}
    12761276
  • trunk/Source/WebKit/win/WebCoreSupport/WebFrameNetworkingContext.cpp

    r166661 r176686  
    105105}
    106106
    107 String WebFrameNetworkingContext::referrer() const
    108 {
    109     return frame()->loader().referrer();
    110 }
    111 
    112107#if USE(CFNETWORK)
    113108NetworkStorageSession& WebFrameNetworkingContext::storageSession() const
  • trunk/Source/WebKit/win/WebCoreSupport/WebFrameNetworkingContext.h

    r162139 r176686  
    3030class WebFrameNetworkingContext : public WebCore::FrameNetworkingContext {
    3131public:
    32     static PassRefPtr<WebFrameNetworkingContext> create(WebCore::Frame* frame, const String& useragent)
     32    static PassRefPtr<WebFrameNetworkingContext> create(WebCore::Frame* frame)
    3333    {
    34         return adoptRef(new WebFrameNetworkingContext(frame, useragent));
     34        return adoptRef(new WebFrameNetworkingContext(frame));
    3535    }
    3636
     
    4343
    4444private:
    45     WebFrameNetworkingContext(WebCore::Frame* frame, const String& userAgent)
    46         : WebCore::FrameNetworkingContext(frame), m_userAgent(userAgent)
     45    explicit WebFrameNetworkingContext(WebCore::Frame* frame)
     46        : WebCore::FrameNetworkingContext(frame)
    4747    {
    4848    }
     
    5252    virtual WebCore::NetworkStorageSession& storageSession() const override;
    5353#endif
    54     virtual String referrer() const override;
    55     virtual String userAgent() const { return m_userAgent; }
    56 
    57     String m_userAgent;
    5854};
    5955
Note: See TracChangeset for help on using the changeset viewer.