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

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

Issue 2118583003: Display when PKP is bypassed in devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/security_handler.h" 5 #include "content/browser/devtools/protocol/security_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
10 #include "content/public/browser/security_style_explanations.h" 10 #include "content/public/browser/security_style_explanations.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 std::vector<scoped_refptr<SecurityStateExplanation>> explanations; 98 std::vector<scoped_refptr<SecurityStateExplanation>> explanations;
99 AddExplanations(kSecurityStateInsecure, 99 AddExplanations(kSecurityStateInsecure,
100 security_style_explanations.broken_explanations, 100 security_style_explanations.broken_explanations,
101 &explanations); 101 &explanations);
102 AddExplanations(kSecurityStateNeutral, 102 AddExplanations(kSecurityStateNeutral,
103 security_style_explanations.unauthenticated_explanations, 103 security_style_explanations.unauthenticated_explanations,
104 &explanations); 104 &explanations);
105 AddExplanations(kSecurityStateSecure, 105 AddExplanations(kSecurityStateSecure,
106 security_style_explanations.secure_explanations, 106 security_style_explanations.secure_explanations,
107 &explanations); 107 &explanations);
108 AddExplanations(kSecurityStateInfo,
109 security_style_explanations.info_explanations, &explanations);
108 110
109 scoped_refptr<MixedContentStatus> mixed_content_status = 111 scoped_refptr<MixedContentStatus> mixed_content_status =
110 MixedContentStatus::Create() 112 MixedContentStatus::Create()
111 ->set_ran_insecure_content( 113 ->set_ran_insecure_content(
112 security_style_explanations.ran_insecure_content) 114 security_style_explanations.ran_insecure_content)
113 ->set_displayed_insecure_content( 115 ->set_displayed_insecure_content(
114 security_style_explanations.displayed_insecure_content) 116 security_style_explanations.displayed_insecure_content)
115 ->set_ran_insecure_content_style(SecurityStyleToProtocolSecurityState( 117 ->set_ran_insecure_content_style(SecurityStyleToProtocolSecurityState(
116 security_style_explanations.ran_insecure_content_style)) 118 security_style_explanations.ran_insecure_content_style))
117 ->set_displayed_insecure_content_style( 119 ->set_displayed_insecure_content_style(
(...skipping 20 matching lines...) Expand all
138 140
139 Response SecurityHandler::Disable() { 141 Response SecurityHandler::Disable() {
140 enabled_ = false; 142 enabled_ = false;
141 WebContentsObserver::Observe(nullptr); 143 WebContentsObserver::Observe(nullptr);
142 return Response::OK(); 144 return Response::OK();
143 } 145 }
144 146
145 } // namespace security 147 } // namespace security
146 } // namespace devtools 148 } // namespace devtools
147 } // namespace content 149 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698