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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static void OnBeforeNavigation(RenderFrameHost* current, 52 static void OnBeforeNavigation(RenderFrameHost* current,
53 RenderFrameHost* pending); 53 RenderFrameHost* pending);
54 static void OnBeforeNavigation(NavigationHandle* navigation_handle); 54 static void OnBeforeNavigation(NavigationHandle* navigation_handle);
55 static void OnFailedNavigation(RenderFrameHost* host, 55 static void OnFailedNavigation(RenderFrameHost* host,
56 const CommonNavigationParams& common_params, 56 const CommonNavigationParams& common_params,
57 const BeginNavigationParams& begin_params, 57 const BeginNavigationParams& begin_params,
58 net::Error error_code); 58 net::Error error_code);
59 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( 59 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation(
60 NavigationHandle* navigation_handle); 60 NavigationHandle* navigation_handle);
61 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node); 61 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node);
62 static std::string UserAgentOverride(FrameTreeNode* frame_tree_node); 62
63 static void ModifyRequestHeadersIfNeeded(FrameTreeNode* frame_tree_node,
64 net::HttpRequestHeaders* headers);
63 65
64 static void WebContentsCreated(WebContents* web_contents); 66 static void WebContentsCreated(WebContents* web_contents);
65 67
66 static void SignalSynchronousSwapCompositorFrame( 68 static void SignalSynchronousSwapCompositorFrame(
67 RenderFrameHost* frame_host, 69 RenderFrameHost* frame_host,
68 cc::CompositorFrameMetadata frame_metadata); 70 cc::CompositorFrameMetadata frame_metadata);
69 71
70 bool HasRenderFrameHost(RenderFrameHost* host); 72 bool HasRenderFrameHost(RenderFrameHost* host);
71 73
72 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 74 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 192
191 // The FrameTreeNode associated with this agent. 193 // The FrameTreeNode associated with this agent.
192 FrameTreeNode* frame_tree_node_; 194 FrameTreeNode* frame_tree_node_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 196 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
195 }; 197 };
196 198
197 } // namespace content 199 } // namespace content
198 200
199 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 201 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698