OLD | NEW |
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 * @unrestricted | 5 * @unrestricted |
6 */ | 6 */ |
7 Security.SecurityModel = class extends SDK.SDKModel { | 7 Security.SecurityModel = class extends SDK.SDKModel { |
8 /** | 8 /** |
9 * @param {!SDK.Target} target | 9 * @param {!SDK.Target} target |
10 */ | 10 */ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * @unrestricted | 90 * @unrestricted |
91 */ | 91 */ |
92 Security.SecurityDispatcher = class { | 92 Security.SecurityDispatcher = class { |
93 constructor(model) { | 93 constructor(model) { |
94 this._model = model; | 94 this._model = model; |
95 } | 95 } |
96 | 96 |
97 /** | 97 /** |
98 * @override | 98 * @override |
99 * @param {!Protocol.Security.SecurityState} securityState | 99 * @param {!Protocol.Security.SecurityState} securityState |
100 * @param {!Array<!Protocol.Security.SecurityStateExplanation>} explanations | 100 * @param {!Array<!Protocol.Security.SecurityStateExplanation>=} explanations |
101 * @param {!Protocol.Security.InsecureContentStatus} insecureContentStatus | 101 * @param {!Protocol.Security.InsecureContentStatus=} insecureContentStatus |
102 * @param {boolean} schemeIsCryptographic | 102 * @param {boolean=} schemeIsCryptographic |
103 */ | 103 */ |
104 securityStateChanged(securityState, explanations, insecureContentStatus, schem
eIsCryptographic) { | 104 securityStateChanged(securityState, explanations, insecureContentStatus, schem
eIsCryptographic) { |
105 var pageSecurityState = | 105 var pageSecurityState = new Security.PageSecurityState( |
106 new Security.PageSecurityState(securityState, explanations, insecureCont
entStatus, schemeIsCryptographic); | 106 securityState, explanations || [], insecureContentStatus || null, scheme
IsCryptographic || false); |
107 this._model.dispatchEventToListeners(Security.SecurityModel.Events.SecurityS
tateChanged, pageSecurityState); | 107 this._model.dispatchEventToListeners(Security.SecurityModel.Events.SecurityS
tateChanged, pageSecurityState); |
108 } | 108 } |
109 }; | 109 }; |
OLD | NEW |