Sha256: 0429e5927c82f4f9161c6af52fccf0d27e7351a27df4a7603d7c9db5529cee41

Contents?: true

Size: 572 Bytes

Versions: 19

Compression:

Stored size: 572 Bytes

Contents

#include <QStringList>

#include "RequestHandler.h"

class BlacklistedRequestHandler : public RequestHandler {
  public:
    BlacklistedRequestHandler(RequestHandler *next, QObject *parent = 0);
    virtual QNetworkReply* handleRequest(
      NetworkAccessManager *,
      QNetworkAccessManager::Operation,
      QNetworkRequest &,
      QIODevice *
    );
    void setUrlBlacklist(QStringList urlBlacklist);
    void blockUrl(const QString &);
    void reset();

  private:
    RequestHandler *m_next;
    QStringList m_urlBlacklist;
    bool isBlacklisted(QUrl url);
};

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
capybara-webkit-1.15.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.15.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.14.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.13.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.12.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.11.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.11.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.10.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.10.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.9.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.8.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.7.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.7.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.6.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.5.2 src/BlacklistedRequestHandler.h
capybara-webkit-1.5.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.5.0 src/BlacklistedRequestHandler.h
capybara-webkit-1.4.1 src/BlacklistedRequestHandler.h
capybara-webkit-1.4.0 src/BlacklistedRequestHandler.h