otherinbox-capybara-webkit 0.12.0 → 0.12.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/GOALS +9 -0
  2. data/README.md +1 -1
  3. data/capybara-webkit.gemspec +1 -1
  4. data/lib/capybara/webkit.rb +11 -4
  5. data/lib/capybara/{driver/webkit → webkit}/browser.rb +27 -3
  6. data/lib/capybara/{driver/webkit → webkit}/connection.rb +45 -47
  7. data/lib/capybara/{driver/webkit → webkit}/cookie_jar.rb +1 -1
  8. data/lib/capybara/webkit/driver.rb +150 -0
  9. data/lib/capybara/webkit/errors.rb +10 -0
  10. data/lib/capybara/{driver/webkit → webkit}/node.rb +2 -2
  11. data/lib/capybara/{driver/webkit → webkit}/socket_debugger.rb +1 -1
  12. data/lib/capybara/{driver/webkit → webkit}/version.rb +1 -1
  13. data/lib/capybara_webkit_builder.rb +17 -3
  14. data/spec/browser_spec.rb +38 -25
  15. data/spec/connection_spec.rb +5 -5
  16. data/spec/cookie_jar_spec.rb +3 -3
  17. data/spec/driver_rendering_spec.rb +19 -26
  18. data/spec/driver_resize_window_spec.rb +3 -3
  19. data/spec/driver_spec.rb +907 -829
  20. data/spec/integration/driver_spec.rb +4 -3
  21. data/spec/spec_helper.rb +14 -6
  22. data/spec/support/app_runner.rb +91 -0
  23. data/src/Authenticate.cpp +18 -0
  24. data/src/Authenticate.h +12 -0
  25. data/src/Body.h +3 -5
  26. data/src/ClearCookies.cpp +3 -5
  27. data/src/ClearCookies.h +3 -5
  28. data/src/Command.cpp +4 -15
  29. data/src/Command.h +3 -14
  30. data/src/CommandFactory.cpp +10 -6
  31. data/src/CommandFactory.h +3 -2
  32. data/src/CommandParser.cpp +1 -1
  33. data/src/Connection.cpp +22 -11
  34. data/src/Connection.h +4 -2
  35. data/src/ConsoleMessages.cpp +2 -1
  36. data/src/ConsoleMessages.h +3 -5
  37. data/src/CurrentUrl.cpp +2 -1
  38. data/src/CurrentUrl.h +3 -5
  39. data/src/EnableLogging.cpp +10 -0
  40. data/src/EnableLogging.h +12 -0
  41. data/src/Evaluate.cpp +2 -1
  42. data/src/Evaluate.h +3 -5
  43. data/src/Execute.cpp +2 -1
  44. data/src/Execute.h +3 -5
  45. data/src/Find.cpp +3 -2
  46. data/src/Find.h +3 -5
  47. data/src/FrameFocus.cpp +3 -2
  48. data/src/FrameFocus.h +3 -4
  49. data/src/GetCookies.cpp +3 -4
  50. data/src/GetCookies.h +3 -5
  51. data/src/GetWindowHandle.cpp +11 -0
  52. data/src/GetWindowHandle.h +10 -0
  53. data/src/GetWindowHandles.cpp +20 -0
  54. data/src/GetWindowHandles.h +10 -0
  55. data/src/Header.cpp +2 -1
  56. data/src/Header.h +3 -5
  57. data/src/Headers.cpp +2 -1
  58. data/src/Headers.h +3 -5
  59. data/src/IgnoreSslErrors.cpp +4 -3
  60. data/src/IgnoreSslErrors.h +3 -5
  61. data/src/JavascriptInvocation.cpp +1 -1
  62. data/src/JavascriptInvocation.h +1 -1
  63. data/src/NetworkAccessManager.cpp +19 -1
  64. data/src/NetworkAccessManager.h +10 -0
  65. data/src/Node.cpp +6 -1
  66. data/src/Node.h +4 -5
  67. data/src/NullCommand.cpp +5 -2
  68. data/src/NullCommand.h +4 -3
  69. data/src/PageLoadingCommand.cpp +12 -7
  70. data/src/PageLoadingCommand.h +6 -9
  71. data/src/Render.cpp +2 -1
  72. data/src/Render.h +3 -5
  73. data/src/RequestedUrl.cpp +2 -1
  74. data/src/RequestedUrl.h +3 -5
  75. data/src/Reset.cpp +3 -17
  76. data/src/Reset.h +3 -8
  77. data/src/ResizeWindow.cpp +2 -1
  78. data/src/ResizeWindow.h +3 -5
  79. data/src/Server.cpp +2 -3
  80. data/src/Server.h +0 -2
  81. data/src/SetCookie.cpp +3 -4
  82. data/src/SetCookie.h +3 -5
  83. data/src/SetProxy.cpp +2 -1
  84. data/src/SetProxy.h +3 -5
  85. data/src/SetSkipImageLoading.cpp +3 -2
  86. data/src/SetSkipImageLoading.h +3 -5
  87. data/src/SocketCommand.cpp +21 -0
  88. data/src/SocketCommand.h +29 -0
  89. data/src/Source.cpp +2 -1
  90. data/src/Source.h +3 -4
  91. data/src/Status.cpp +2 -1
  92. data/src/Status.h +3 -5
  93. data/src/UnsupportedContentHandler.cpp +1 -1
  94. data/src/Url.cpp +2 -1
  95. data/src/Url.h +3 -5
  96. data/src/Visit.cpp +3 -2
  97. data/src/Visit.h +3 -5
  98. data/src/WebPage.cpp +86 -39
  99. data/src/WebPage.h +22 -8
  100. data/src/WebPageManager.cpp +117 -0
  101. data/src/WebPageManager.h +56 -0
  102. data/src/WindowFocus.cpp +32 -0
  103. data/src/WindowFocus.h +15 -0
  104. data/src/body.cpp +2 -1
  105. data/src/find_command.h +6 -2
  106. data/src/webkit_server.pro +14 -0
  107. data/templates/Command.cpp +2 -4
  108. data/templates/Command.h +3 -3
  109. metadata +29 -10
  110. data/lib/capybara/driver/webkit.rb +0 -135
@@ -10,10 +10,20 @@ class NetworkAccessManager : public QNetworkAccessManager {
10
10
  NetworkAccessManager(QObject *parent = 0);
11
11
  void addHeader(QString key, QString value);
12
12
  void resetHeaders();
13
+ void setUserName(const QString &userName);
14
+ void setPassword(const QString &password);
13
15
 
14
16
  protected:
15
17
  QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice * outgoingData);
18
+ QString m_userName;
19
+ QString m_password;
16
20
 
17
21
  private:
18
22
  QHash<QString, QString> m_headers;
23
+
24
+ private slots:
25
+ void provideAuthentication(QNetworkReply *reply, QAuthenticator *authenticator);
26
+
27
+ signals:
28
+ void requestCreated(QNetworkReply *reply);
19
29
  };
data/src/Node.cpp CHANGED
@@ -1,7 +1,8 @@
1
1
  #include "Node.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- Node::Node(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
5
+ Node::Node(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
5
6
  }
6
7
 
7
8
  void Node::start() {
@@ -12,3 +13,7 @@ void Node::start() {
12
13
  emit finished(new Response(true, attributeValue));
13
14
  }
14
15
 
16
+ QString Node::toString() const {
17
+ QStringList functionArguments(arguments());
18
+ return QString("Node.") + functionArguments.takeFirst();
19
+ }
data/src/Node.h CHANGED
@@ -1,13 +1,12 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
  #include <QStringList>
3
3
 
4
- class WebPage;
5
-
6
- class Node : public Command {
4
+ class Node : public SocketCommand {
7
5
  Q_OBJECT
8
6
 
9
7
  public:
10
- Node(WebPage *page, QStringList &arguments, QObject *parent = 0);
8
+ Node(WebPageManager *manager, QStringList &arguments, QObject *parent = 0);
11
9
  virtual void start();
10
+ virtual QString toString() const;
12
11
  };
13
12
 
data/src/NullCommand.cpp CHANGED
@@ -1,10 +1,13 @@
1
1
  #include "NullCommand.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- NullCommand::NullCommand(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {}
5
+ NullCommand::NullCommand(QString name, QObject *parent) : Command(parent) {
6
+ m_name = name;
7
+ }
5
8
 
6
9
  void NullCommand::start() {
7
- QString failure = QString("[Capybara WebKit] Unknown command: ") + arguments()[0] + "\n";
10
+ QString failure = QString("[Capybara WebKit] Unknown command: ") + m_name + "\n";
8
11
  emit finished(new Response(false, failure));
9
12
  }
10
13
 
data/src/NullCommand.h CHANGED
@@ -1,11 +1,12 @@
1
1
  #include "Command.h"
2
2
 
3
- class WebPage;
4
-
5
3
  class NullCommand : public Command {
6
4
  Q_OBJECT
7
5
 
8
6
  public:
9
- NullCommand(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ NullCommand(QString name, QObject *parent = 0);
10
8
  virtual void start();
9
+
10
+ private:
11
+ QString m_name;
11
12
  };
@@ -1,18 +1,20 @@
1
1
  #include "PageLoadingCommand.h"
2
- #include "Command.h"
2
+ #include "SocketCommand.h"
3
3
  #include "WebPage.h"
4
+ #include "WebPageManager.h"
4
5
 
5
- PageLoadingCommand::PageLoadingCommand(Command *command, WebPage *page, QObject *parent) : QObject(parent) {
6
- m_page = page;
6
+ PageLoadingCommand::PageLoadingCommand(Command *command, WebPageManager *manager, QObject *parent) : Command(parent) {
7
+ m_manager = manager;
7
8
  m_command = command;
8
9
  m_pageLoadingFromCommand = false;
9
10
  m_pageSuccess = true;
10
11
  m_pendingResponse = NULL;
11
- connect(m_page, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
12
- connect(m_page, SIGNAL(pageFinished(bool)), this, SLOT(pendingLoadFinished(bool)));
12
+ connect(m_manager, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
13
+ connect(m_manager, SIGNAL(pageFinished(bool)), this, SLOT(pendingLoadFinished(bool)));
13
14
  }
14
15
 
15
16
  void PageLoadingCommand::start() {
17
+ m_manager->logger() << "Started" << m_command->toString();
16
18
  connect(m_command, SIGNAL(finished(Response *)), this, SLOT(commandFinished(Response *)));
17
19
  m_command->start();
18
20
  };
@@ -22,10 +24,11 @@ void PageLoadingCommand::pendingLoadFinished(bool success) {
22
24
  if (m_pageLoadingFromCommand) {
23
25
  m_pageLoadingFromCommand = false;
24
26
  if (m_pendingResponse) {
27
+ m_manager->logger() << "Page load from command finished";
25
28
  if (m_pageSuccess) {
26
29
  emit finished(m_pendingResponse);
27
30
  } else {
28
- QString message = m_page->failureString();
31
+ QString message = m_manager->currentPage()->failureString();
29
32
  emit finished(new Response(false, message));
30
33
  }
31
34
  }
@@ -33,11 +36,13 @@ void PageLoadingCommand::pendingLoadFinished(bool success) {
33
36
  }
34
37
 
35
38
  void PageLoadingCommand::pageLoadingFromCommand() {
39
+ m_manager->logger() << m_command->toString() << "started page load";
36
40
  m_pageLoadingFromCommand = true;
37
41
  }
38
42
 
39
43
  void PageLoadingCommand::commandFinished(Response *response) {
40
- disconnect(m_page, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
44
+ disconnect(m_manager, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
45
+ m_manager->logger() << "Finished" << m_command->toString();
41
46
  m_command->deleteLater();
42
47
  if (m_pageLoadingFromCommand)
43
48
  m_pendingResponse = response;
@@ -1,9 +1,9 @@
1
1
  #include <QObject>
2
2
  #include <QStringList>
3
+ #include "Command.h"
3
4
 
4
- class Command;
5
5
  class Response;
6
- class WebPage;
6
+ class WebPageManager;
7
7
 
8
8
  /*
9
9
  * Decorates a Command by deferring the finished() signal until any pending
@@ -15,23 +15,20 @@ class WebPage;
15
15
  * If a pending page load fails, the command's response will be discarded and a
16
16
  * failure response will be emitted instead.
17
17
  */
18
- class PageLoadingCommand : public QObject {
18
+ class PageLoadingCommand : public Command {
19
19
  Q_OBJECT
20
20
 
21
21
  public:
22
- PageLoadingCommand(Command *command, WebPage *page, QObject *parent = 0);
23
- void start();
22
+ PageLoadingCommand(Command *command, WebPageManager *page, QObject *parent = 0);
23
+ virtual void start();
24
24
 
25
25
  public slots:
26
26
  void pageLoadingFromCommand();
27
27
  void pendingLoadFinished(bool success);
28
28
  void commandFinished(Response *response);
29
29
 
30
- signals:
31
- void finished(Response *response);
32
-
33
30
  private:
34
- WebPage *m_page;
31
+ WebPageManager *m_manager;
35
32
  Command *m_command;
36
33
  Response *m_pendingResponse;
37
34
  bool m_pageSuccess;
data/src/Render.cpp CHANGED
@@ -1,7 +1,8 @@
1
1
  #include "Render.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- Render::Render(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
5
+ Render::Render(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
5
6
  }
6
7
 
7
8
  void Render::start() {
data/src/Render.h CHANGED
@@ -1,12 +1,10 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
  #include <QStringList>
3
3
 
4
- class WebPage;
5
-
6
- class Render : public Command {
4
+ class Render : public SocketCommand {
7
5
  Q_OBJECT
8
6
 
9
7
  public:
10
- Render(WebPage *page, QStringList &arguments, QObject *parent = 0);
8
+ Render(WebPageManager *page, QStringList &arguments, QObject *parent = 0);
11
9
  virtual void start();
12
10
  };
data/src/RequestedUrl.cpp CHANGED
@@ -1,7 +1,8 @@
1
1
  #include "RequestedUrl.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- RequestedUrl::RequestedUrl(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
5
+ RequestedUrl::RequestedUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
5
6
  }
6
7
 
7
8
  void RequestedUrl::start() {
data/src/RequestedUrl.h CHANGED
@@ -1,12 +1,10 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class RequestedUrl : public Command {
3
+ class RequestedUrl : public SocketCommand {
6
4
  Q_OBJECT
7
5
 
8
6
  public:
9
- RequestedUrl(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ RequestedUrl(WebPageManager *, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
9
  };
12
10
 
data/src/Reset.cpp CHANGED
@@ -1,29 +1,15 @@
1
1
  #include "Reset.h"
2
2
  #include "WebPage.h"
3
- #include "NetworkAccessManager.h"
4
- #include "NetworkCookieJar.h"
3
+ #include "WebPageManager.h"
5
4
 
6
- Reset::Reset(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
5
+ Reset::Reset(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
7
6
  }
8
7
 
9
8
  void Reset::start() {
10
9
  page()->triggerAction(QWebPage::Stop);
11
10
 
12
- NetworkAccessManager* networkAccessManager = qobject_cast<NetworkAccessManager*>(page()->networkAccessManager());
13
- networkAccessManager->setCookieJar(new NetworkCookieJar());
14
- networkAccessManager->resetHeaders();
11
+ manager()->reset();
15
12
 
16
- page()->setUserAgent(NULL);
17
- page()->resetResponseHeaders();
18
- page()->resetConsoleMessages();
19
- page()->resetWindowSize();
20
- resetHistory();
21
13
  emit finished(new Response(true));
22
14
  }
23
15
 
24
- void Reset::resetHistory() {
25
- // Clearing the history preserves the current history item, so set it to blank first.
26
- page()->currentFrame()->setUrl(QUrl("about:blank"));
27
- page()->history()->clear();
28
- }
29
-
data/src/Reset.h CHANGED
@@ -1,15 +1,10 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class Reset : public Command {
3
+ class Reset : public SocketCommand {
6
4
  Q_OBJECT
7
5
 
8
6
  public:
9
- Reset(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ Reset(WebPageManager *, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
-
12
- private:
13
- void resetHistory();
14
9
  };
15
10
 
data/src/ResizeWindow.cpp CHANGED
@@ -1,7 +1,8 @@
1
1
  #include "ResizeWindow.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- ResizeWindow::ResizeWindow(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
5
+ ResizeWindow::ResizeWindow(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
5
6
  }
6
7
 
7
8
  void ResizeWindow::start() {
data/src/ResizeWindow.h CHANGED
@@ -1,12 +1,10 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class ResizeWindow : public Command {
3
+ class ResizeWindow : public SocketCommand {
6
4
  Q_OBJECT
7
5
 
8
6
  public:
9
- ResizeWindow(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ ResizeWindow(WebPageManager *, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
9
  };
12
10
 
data/src/Server.cpp CHANGED
@@ -1,12 +1,11 @@
1
1
  #include "Server.h"
2
- #include "WebPage.h"
3
2
  #include "Connection.h"
3
+ #include "WebPageManager.h"
4
4
 
5
5
  #include <QTcpServer>
6
6
 
7
7
  Server::Server(QObject *parent) : QObject(parent) {
8
8
  m_tcp_server = new QTcpServer(this);
9
- m_page = new WebPage(this);
10
9
  }
11
10
 
12
11
  bool Server::start() {
@@ -20,5 +19,5 @@ quint16 Server::server_port() const {
20
19
 
21
20
  void Server::handleConnection() {
22
21
  QTcpSocket *socket = m_tcp_server->nextPendingConnection();
23
- new Connection(socket, m_page, this);
22
+ new Connection(socket, new WebPageManager(this), this);
24
23
  }
data/src/Server.h CHANGED
@@ -1,7 +1,6 @@
1
1
  #include <QObject>
2
2
 
3
3
  class QTcpServer;
4
- class WebPage;
5
4
 
6
5
  class Server : public QObject {
7
6
  Q_OBJECT
@@ -16,6 +15,5 @@ class Server : public QObject {
16
15
 
17
16
  private:
18
17
  QTcpServer *m_tcp_server;
19
- WebPage *m_page;
20
18
  };
21
19
 
data/src/SetCookie.cpp CHANGED
@@ -1,16 +1,15 @@
1
1
  #include "SetCookie.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
  #include "NetworkCookieJar.h"
4
5
  #include <QNetworkCookie>
5
6
 
6
- SetCookie::SetCookie(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {}
7
+ SetCookie::SetCookie(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {}
7
8
 
8
9
  void SetCookie::start()
9
10
  {
10
11
  QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(arguments()[0].toAscii());
11
- NetworkCookieJar *jar = qobject_cast<NetworkCookieJar*>(page()
12
- ->networkAccessManager()
13
- ->cookieJar());
12
+ NetworkCookieJar *jar = manager()->cookieJar();
14
13
  jar->overwriteCookies(cookies);
15
14
  emit finished(new Response(true));
16
15
  }
data/src/SetCookie.h CHANGED
@@ -1,11 +1,9 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class SetCookie : public Command {
3
+ class SetCookie : public SocketCommand {
6
4
  Q_OBJECT;
7
5
 
8
6
  public:
9
- SetCookie(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ SetCookie(WebPageManager *, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
9
  };
data/src/SetProxy.cpp CHANGED
@@ -1,9 +1,10 @@
1
1
  #include "SetProxy.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
  #include <QNetworkAccessManager>
4
5
  #include <QNetworkProxy>
5
6
 
6
- SetProxy::SetProxy(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {}
7
+ SetProxy::SetProxy(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {}
7
8
 
8
9
  void SetProxy::start()
9
10
  {
data/src/SetProxy.h CHANGED
@@ -1,11 +1,9 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class SetProxy : public Command {
3
+ class SetProxy : public SocketCommand {
6
4
  Q_OBJECT;
7
5
 
8
6
  public:
9
- SetProxy(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ SetProxy(WebPageManager *, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
9
  };
@@ -1,8 +1,9 @@
1
1
  #include "SetSkipImageLoading.h"
2
2
  #include "WebPage.h"
3
+ #include "WebPageManager.h"
3
4
 
4
- SetSkipImageLoading::SetSkipImageLoading(WebPage *page, QStringList &arguments, QObject *parent) :
5
- Command(page, arguments, parent) {
5
+ SetSkipImageLoading::SetSkipImageLoading(WebPageManager *manager, QStringList &arguments, QObject *parent) :
6
+ SocketCommand(manager, arguments, parent) {
6
7
  }
7
8
 
8
9
  void SetSkipImageLoading::start() {
@@ -1,11 +1,9 @@
1
- #include "Command.h"
1
+ #include "SocketCommand.h"
2
2
 
3
- class WebPage;
4
-
5
- class SetSkipImageLoading : public Command {
3
+ class SetSkipImageLoading : public SocketCommand {
6
4
  Q_OBJECT
7
5
 
8
6
  public:
9
- SetSkipImageLoading(WebPage *page, QStringList &arguments, QObject *parent = 0);
7
+ SetSkipImageLoading(WebPageManager *manager, QStringList &arguments, QObject *parent = 0);
10
8
  virtual void start();
11
9
  };