OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/browser/devtools/protocol/network_handler.h" | 5 #include "content/browser/devtools/protocol/network_handler.h" |
6 | 6 |
7 #include "base/containers/hash_tables.h" | 7 #include "base/containers/hash_tables.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/browser/frame_host/frame_tree_node.h" | 10 #include "content/browser/frame_host/frame_tree_node.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 Response NetworkHandler::ShowCertificateViewer(int certificate_id) { | 316 Response NetworkHandler::ShowCertificateViewer(int certificate_id) { |
317 if (!host_) | 317 if (!host_) |
318 return Response::InternalError("Could not connect to view"); | 318 return Response::InternalError("Could not connect to view"); |
319 WebContents* web_contents = WebContents::FromRenderFrameHost(host_); | 319 WebContents* web_contents = WebContents::FromRenderFrameHost(host_); |
320 web_contents->GetDelegate()->ShowCertificateViewerInDevTools( | 320 web_contents->GetDelegate()->ShowCertificateViewerInDevTools( |
321 web_contents, certificate_id); | 321 web_contents, certificate_id); |
322 return Response::OK(); | 322 return Response::OK(); |
323 } | 323 } |
324 | 324 |
325 } // namespace dom | 325 } // namespace network |
326 } // namespace devtools | 326 } // namespace devtools |
327 } // namespace content | 327 } // namespace content |
OLD | NEW |