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

Changeset 176577 in webkit


Ignore:
Timestamp:
Nov 29, 2014, 2:17:07 PM (12 years ago)
Author:
andersca@apple.com
Message:

Add an EmptyVisitedLinkStore implementation
https://bugs.webkit.org/show_bug.cgi?id=139102

Reviewed by Sam Weinig.

  • loader/EmptyClients.cpp:

(WebCore::fillWithEmptyClients):

  • loader/EmptyClients.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176571 r176577  
     12014-11-29  Anders Carlsson  <andersca@apple.com>
     2
     3        Add an EmptyVisitedLinkStore implementation
     4        https://bugs.webkit.org/show_bug.cgi?id=139102
     5
     6        Reviewed by Sam Weinig.
     7
     8        * loader/EmptyClients.cpp:
     9        (WebCore::fillWithEmptyClients):
     10        * loader/EmptyClients.h:
     11
    1122014-11-28  Sam Weinig  <sam@webkit.org>
    213
  • trunk/Source/WebCore/loader/EmptyClients.cpp

    r176499 r176577  
    4545namespace WebCore {
    4646
     47class EmptyVisitedLinkStore : public VisitedLinkStore {
     48    virtual bool isLinkVisited(Page&, LinkHash, const URL&, const AtomicString&) override { return false; }
     49    virtual void addVisitedLink(Page&, LinkHash) override { }
     50};
     51
    4752void fillWithEmptyClients(PageConfiguration& pageConfiguration)
    4853{
     
    7479    static NeverDestroyed<EmptyDiagnosticLoggingClient> dummyDiagnosticLoggingClient;
    7580    pageConfiguration.diagnosticLoggingClient = &dummyDiagnosticLoggingClient.get();
     81
     82    pageConfiguration.visitedLinkStore = adoptRef(new EmptyVisitedLinkStore);
    7683}
    7784
  • trunk/Source/WebCore/loader/EmptyClients.h

    r176499 r176577  
    4545#include "ProgressTrackerClient.h"
    4646#include "ResourceError.h"
     47#include "VisitedLinkStore.h"
    4748#include <wtf/text/StringView.h>
    4849
Note: See TracChangeset for help on using the changeset viewer.