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

Unified Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2296953004: Send certificates to devtools when it's open instead of using certId (Closed)
Patch Set: take out unneeded code Created 4 years, 4 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: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
index deb83a37f672a48e401c08599fdf9fbccdf91712..93efe5b8577476725d1f099809a9156c6cad5777 100644
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
@@ -48,7 +48,6 @@
#include "core/inspector/InspectorLayerTreeAgent.h"
#include "core/inspector/InspectorLogAgent.h"
#include "core/inspector/InspectorMemoryAgent.h"
-#include "core/inspector/InspectorNetworkAgent.h"
#include "core/inspector/InspectorPageAgent.h"
#include "core/inspector/InspectorResourceContainer.h"
#include "core/inspector/InspectorResourceContentLoader.h"
@@ -388,7 +387,7 @@ void WebDevToolsAgentImpl::initializeSession(int sessionId, const String& hostId
m_layerTreeAgent = layerTreeAgent;
m_session->append(layerTreeAgent);
- InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(m_inspectedFrames.get());
+ InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(this, m_inspectedFrames.get());
m_networkAgent = networkAgent;
m_session->append(networkAgent);
@@ -563,6 +562,12 @@ void WebDevToolsAgentImpl::setCPUThrottlingRate(double rate)
m_client->setCPUThrottlingRate(rate);
}
+void WebDevToolsAgentImpl::showCertificateViewer(const AtomicString& certificate)
+{
+ if (m_client)
+ m_client->showCertificateViewer(certificate);
+}
+
void WebDevToolsAgentImpl::dispatchOnInspectorBackend(int sessionId, int callId, const WebString& method, const WebString& message)
{
if (!attached())

Powered by Google App Engine
This is Rietveld 408576698