Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2023)

Unified Diff: content/renderer/devtools/devtools_client.h

Issue 1144393004: [DevTools] Load DevTools frontend without iframe (chromium part). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-test
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/devtools/devtools_client.h
diff --git a/content/renderer/devtools/devtools_client.h b/content/renderer/devtools/devtools_client.h
index 6460ca83c7303a72f192bef56df5cda2281079f6..8997c4eb26a0a6f8cc0a4d217c69bcd3c1257ebe 100644
--- a/content/renderer/devtools/devtools_client.h
+++ b/content/renderer/devtools/devtools_client.h
@@ -29,10 +29,14 @@ class CONTENT_EXPORT DevToolsClient
: public RenderFrameObserver,
NON_EXPORTED_BASE(public blink::WebDevToolsFrontendClient) {
public:
- explicit DevToolsClient(RenderFrame* main_render_frame);
+ DevToolsClient(RenderFrame* main_render_frame,
+ const std::string& injected_script);
virtual ~DevToolsClient();
private:
+ // RenderFrameObserver overrides.
+ void DidClearWindowObject() override;
+
// WebDevToolsFrontendClient implementation.
virtual void sendMessageToBackend(const blink::WebString&) override;
virtual void sendMessageToEmbedder(const blink::WebString&) override;
@@ -43,6 +47,7 @@ class CONTENT_EXPORT DevToolsClient
uint32 total_size);
scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_;
+ std::string injected_script_;
DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
};

Powered by Google App Engine
This is Rietveld 408576698