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

Unified Diff: content/browser/devtools/devtools_agent_host_impl.h

Issue 2739323003: DevTools protocol interception, blocking & modification of requests (Closed)
Patch Set: Add missing expects plus tweak test output of Network.interceptedRedirect for clarity Created 3 years, 9 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/browser/devtools/devtools_agent_host_impl.h
diff --git a/content/browser/devtools/devtools_agent_host_impl.h b/content/browser/devtools/devtools_agent_host_impl.h
index aa54dfd6250bd97d7946424d9825265138d7d773..466128f43dfd61a58987d9958c404eec4dcb6b87 100644
--- a/content/browser/devtools/devtools_agent_host_impl.h
+++ b/content/browser/devtools/devtools_agent_host_impl.h
@@ -49,6 +49,11 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost {
bool Inspect();
void SendMessageToClient(int session_id, const std::string& message);
+ template <typename HandlerT>
+ HandlerT* GetHandler() const {
+ return HandlerT::FromSession(session_.get());
+ }
+
protected:
DevToolsAgentHostImpl(const std::string& id);
~DevToolsAgentHostImpl() override;

Powered by Google App Engine
This is Rietveld 408576698