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

Side by Side Diff: content/browser/devtools/protocol/network_handler.cc

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698