forked from tristandunn/webkit-server
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in upstream changes for requested URL command and more.
- Loading branch information
1 parent
1c8fe9b
commit da8aecc
Showing
7 changed files
with
37 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "RequestedUrl.h" | ||
#include "WebPage.h" | ||
|
||
RequestedUrl::RequestedUrl(WebPage *page, QObject *parent) : Command(page, parent) { | ||
} | ||
|
||
void RequestedUrl::start(QStringList &arguments) { | ||
Q_UNUSED(arguments); | ||
|
||
QUrl humanUrl = page()->currentFrame()->requestedUrl(); | ||
QByteArray encodedBytes = humanUrl.toEncoded(); | ||
QString urlString = QString(encodedBytes); | ||
emit finished(new Response(true, urlString)); | ||
} | ||
|
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 @@ | ||
#include "Command.h" | ||
|
||
class WebPage; | ||
|
||
class RequestedUrl : public Command { | ||
Q_OBJECT | ||
|
||
public: | ||
RequestedUrl(WebPage *page, QObject *parent = 0); | ||
virtual void start(QStringList &arguments); | ||
}; | ||
|
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
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