diff options
author | Chris Hutten-Czapski <chutten@blackberry.com> | 2013-10-09 10:42:35 -0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-29 16:26:57 +0100 |
commit | f21cb5bc6fca478541d804d24ca0b60a96d82e8f (patch) | |
tree | 66922b25198677290112d735f7ec131a586283aa /lib/content_browser_client_qt.h | |
parent | eabac4c9ca887b86bcebbfd2d2afd77ed8cc1a6a (diff) |
QtWebEngine Dev Tools (Web Inspector)
To implement the Web Inspector we need a delegate to handle the http
server and devtools connections, a landing page, a ContentClient to
tell the devtools server where to find its frontend resources, those
frontend resources, and an API for embedders to turn on inspectability
in WebEngineViews.
The frontend resources are build by the chromium build and are copied
over as part of lib's build.
The landing page was taken directly from content_shell. This
should be replaced by either a new one for all QtWebEngine embedders or
by a mechanism for embedders to supply their own (or both).
Change-Id: Id4076d5ede34a91abf8dba443aed4dca4be1b3e5
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'lib/content_browser_client_qt.h')
-rw-r--r-- | lib/content_browser_client_qt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/content_browser_client_qt.h b/lib/content_browser_client_qt.h index 6ba2b7c4d..f8c42e569 100644 --- a/lib/content_browser_client_qt.h +++ b/lib/content_browser_client_qt.h @@ -42,6 +42,7 @@ #ifndef CONTENT_BROWSER_CLIENT_QT_H #define CONTENT_BROWSER_CLIENT_QT_H +#include "base/memory/scoped_ptr.h" #include "content/public/browser/content_browser_client.h" #include <QtCore/qcompilerdetection.h> // Needed for Q_DECL_OVERRIDE @@ -61,6 +62,7 @@ struct MainFunctionParams; class BrowserContextQt; class BrowserMainPartsQt; +class DevToolsHttpHandlerDelegateQt; class ContentBrowserClientQt : public content::ContentBrowserClient { @@ -76,8 +78,11 @@ public: net::URLRequestContextGetter *CreateRequestContext(content::BrowserContext *content_browser_context, content::ProtocolHandlerMap *protocol_handlers); + void enableInspector(bool); + private: BrowserMainPartsQt* m_browserMainParts; + scoped_ptr<DevToolsHttpHandlerDelegateQt> m_devtools; }; |