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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.h

Issue 2639203003: Add certificate error handling to devtools. (Closed)
Patch Set: plumb error through agent host Created 3 years, 10 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 NavigationHandle* navigation_handle); 53 NavigationHandle* navigation_handle);
54 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node); 54 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node);
55 static std::string UserAgentOverride(FrameTreeNode* frame_tree_node); 55 static std::string UserAgentOverride(FrameTreeNode* frame_tree_node);
56 56
57 static void WebContentsCreated(WebContents* web_contents); 57 static void WebContentsCreated(WebContents* web_contents);
58 58
59 static void SignalSynchronousSwapCompositorFrame( 59 static void SignalSynchronousSwapCompositorFrame(
60 RenderFrameHost* frame_host, 60 RenderFrameHost* frame_host,
61 cc::CompositorFrameMetadata frame_metadata); 61 cc::CompositorFrameMetadata frame_metadata);
62 62
63 static bool NotifyCertificateError(
pfeldman 2017/02/16 01:35:34 You should talk directly to the security handler,
64 RenderFrameDevToolsAgentHost* agent_host,
65 int cert_error,
66 const GURL& request_url,
67 base::Callback<void(content::CertificateRequestResultType)> callback);
68
63 bool HasRenderFrameHost(RenderFrameHost* host); 69 bool HasRenderFrameHost(RenderFrameHost* host);
64 70
65 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 71 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
66 72
67 // DevTooolsAgentHost overrides. 73 // DevToolsAgentHost overrides.
68 void DisconnectWebContents() override; 74 void DisconnectWebContents() override;
69 void ConnectWebContents(WebContents* web_contents) override; 75 void ConnectWebContents(WebContents* web_contents) override;
70 BrowserContext* GetBrowserContext() override; 76 BrowserContext* GetBrowserContext() override;
71 WebContents* GetWebContents() override; 77 WebContents* GetWebContents() override;
72 std::string GetParentId() override; 78 std::string GetParentId() override;
73 std::string GetType() override; 79 std::string GetType() override;
74 std::string GetTitle() override; 80 std::string GetTitle() override;
75 std::string GetDescription() override; 81 std::string GetDescription() override;
76 GURL GetURL() override; 82 GURL GetURL() override;
77 GURL GetFaviconURL() override; 83 GURL GetFaviconURL() override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 186
181 // The FrameTreeNode associated with this agent. 187 // The FrameTreeNode associated with this agent.
182 FrameTreeNode* frame_tree_node_; 188 FrameTreeNode* frame_tree_node_;
183 189
184 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 190 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
185 }; 191 };
186 192
187 } // namespace content 193 } // namespace content
188 194
189 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 195 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698