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

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

Issue 1727133002: Expose TLS settings in the Security panel overview, and call out individual obsolete settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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,
110 &explanations);
108 111
109 scoped_refptr<MixedContentStatus> mixed_content_status = 112 scoped_refptr<MixedContentStatus> mixed_content_status =
110 MixedContentStatus::Create() 113 MixedContentStatus::Create()
111 ->set_ran_insecure_content( 114 ->set_ran_insecure_content(
112 security_style_explanations.ran_insecure_content) 115 security_style_explanations.ran_insecure_content)
113 ->set_displayed_insecure_content( 116 ->set_displayed_insecure_content(
114 security_style_explanations.displayed_insecure_content) 117 security_style_explanations.displayed_insecure_content)
115 ->set_ran_insecure_content_style(SecurityStyleToProtocolSecurityState( 118 ->set_ran_insecure_content_style(SecurityStyleToProtocolSecurityState(
116 security_style_explanations.ran_insecure_content_style)) 119 security_style_explanations.ran_insecure_content_style))
117 ->set_displayed_insecure_content_style( 120 ->set_displayed_insecure_content_style(
(...skipping 20 matching lines...) Expand all
138 141
139 Response SecurityHandler::Disable() { 142 Response SecurityHandler::Disable() {
140 enabled_ = false; 143 enabled_ = false;
141 WebContentsObserver::Observe(nullptr); 144 WebContentsObserver::Observe(nullptr);
142 return Response::OK(); 145 return Response::OK();
143 } 146 }
144 147
145 } // namespace security 148 } // namespace security
146 } // namespace devtools 149 } // namespace devtools
147 } // namespace content 150 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698