BVB Source Codes

capybara-webkit Show UnknownUrlHandler.h Source code

Return Download capybara-webkit: download UnknownUrlHandler.h Source code - Download capybara-webkit Source code - Type:.h
  1. #ifndef _REQUESTHANDLER_H
  2. #define _REQUESTHANDLER_H
  3.  
  4. #include "RequestHandler.h"
  5.  
  6. class UnknownUrlHandler : public RequestHandler {
  7.   public:
  8.     enum Mode { WARN, BLOCK };
  9.  
  10.     UnknownUrlHandler(RequestHandler *next, QObject *parent = 0);
  11.     virtual QNetworkReply* handleRequest(
  12.       NetworkAccessManager *,
  13.       QNetworkAccessManager::Operation,
  14.       QNetworkRequest &,
  15.       QIODevice *
  16.     );
  17.     void allowUrl(const QString &);
  18.     void setMode(Mode);
  19.     void reset();
  20.  
  21.   private:
  22.     QStringList m_allowedUrls;
  23.     bool isUnknown(QUrl);
  24.     Mode m_mode;
  25.     RequestHandler *m_next;
  26.     void allowDefaultUrls();
  27. };
  28.  
  29. #endif
  30.  
downloadUnknownUrlHandler.h Source code - Download capybara-webkit Source code
Related Source Codes/Software:
dat.gui - dat.gui is a lightweight controller library for Ja... 2017-04-16
tmate - Instant Terminal Sharing ht... 2017-04-16
WNXHuntForCity - City find By Objective - C 2017-04-16
st2 - StackStorm (aka IFTTT for Ops) is event-driven aut... 2017-04-16
css-in-js - React: CSS in JS techniques comparison. 2017-04-16
fullstackpython.com - Full Stack Python source with Pelican, Bootstrap a... 2017-04-16
naxsi - NAXSI is an open-source, high performance, low rul... 2017-04-16
ToGL - Direct3D to OpenGL abstraction layer 2017-04-16
LiveScript - LiveScript is a language which compiles to JavaScr... 2017-04-16
clair - Vulnerability Static Analysis for Container 2017-04-17
pipfile - 2017-04-23
MaterialSearchView - Express it in the library to implement SearchView ... 2017-04-23
ptpython - A better Python REPL 2017-04-23
Laravel-4-Bootstrap-Starter-Site - Laravel 4 Starter Site is a basic blog application... 2017-04-23
official-images - Primary source of truth for the Docker "Official I... 2017-04-23
awesome-chrome-devtools - Awesome tooling and resources in the Chrome DevToo... 2017-04-23
EventStore - The open-source, functional database with Complex ... 2017-04-23
screencat - 2017-04-23
viz.js - A hack to put Graphviz on the web. ... 2017-04-23
JKeyboardPanelSwitch - For resolve the layout conflict when keybord & amp... 2017-04-23

 Back to top