-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "url_schemes.h" | ||
|
||
#include <QWebEngineUrlScheme> | ||
|
||
static const QByteArray QspWebEngineUrlSchemeName = QByteArrayLiteral("qsp"); | ||
static const QByteArray QspExecWebEngineUrlSchemeName = QByteArrayLiteral("exec"); | ||
|
||
void register_url_schemes() | ||
{ | ||
QWebEngineUrlScheme QspWebEngineUrlScheme(QspWebEngineUrlSchemeName); | ||
QspWebEngineUrlScheme.setFlags(QWebEngineUrlScheme::SecureScheme | | ||
QWebEngineUrlScheme::LocalAccessAllowed | | ||
QWebEngineUrlScheme::ServiceWorkersAllowed | | ||
QWebEngineUrlScheme::ViewSourceAllowed | | ||
QWebEngineUrlScheme::ContentSecurityPolicyIgnored); | ||
QWebEngineUrlScheme::registerScheme(QspWebEngineUrlScheme); | ||
QWebEngineUrlScheme QspExecWebEngineUrlScheme(QspExecWebEngineUrlSchemeName); | ||
QspExecWebEngineUrlScheme.setFlags(QWebEngineUrlScheme::SecureScheme | | ||
QWebEngineUrlScheme::LocalAccessAllowed | | ||
QWebEngineUrlScheme::ServiceWorkersAllowed | | ||
QWebEngineUrlScheme::ViewSourceAllowed | | ||
QWebEngineUrlScheme::ContentSecurityPolicyIgnored); | ||
QWebEngineUrlScheme::registerScheme(QspExecWebEngineUrlScheme); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef URL_SCHEMES_H | ||
#define URL_SCHEMES_H | ||
|
||
#include "qspwebengineurlschemehandler.h" | ||
#include "qspexecwebengineurlschemehandler.h" | ||
|
||
//static QspWebEngineUrlSchemeHandler qweush; | ||
//static QspExecWebEngineUrlSchemeHandler qeweush; | ||
|
||
void register_url_schemes(); | ||
|
||
#endif // URL_SCHEMES_H |