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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.SDKModel} 7 * @extends {WebInspector.SDKModel}
8 * @param {!WebInspector.Target} target 8 * @param {!WebInspector.Target} target
9 */ 9 */
10 WebInspector.SecurityModel = function(target) 10 WebInspector.SecurityModel = function(target)
11 { 11 {
12 WebInspector.SDKModel.call(this, WebInspector.SecurityModel, target); 12 WebInspector.SDKModel.call(this, WebInspector.SecurityModel, target);
13 this._dispatcher = new WebInspector.SecurityDispatcher(this); 13 this._dispatcher = new WebInspector.SecurityDispatcher(this);
14 this._securityAgent = target.securityAgent(); 14 this._securityAgent = target.securityAgent();
15 target.registerSecurityDispatcher(this._dispatcher); 15 target.registerSecurityDispatcher(this._dispatcher);
16 this._securityAgent.enable(); 16 this._securityAgent.enable();
17 } 17 }
18 18
19 /** @enum {symbol} */ 19 /** @enum {symbol} */
20 WebInspector.SecurityModel.Events = { 20 WebInspector.SecurityModel.Events = {
21 SecurityStateChanged: Symbol("SecurityStateChanged") 21 SecurityStateChanged: Symbol("SecurityStateChanged")
22 } 22 }
23 23
24 WebInspector.SecurityModel.prototype = { 24 WebInspector.SecurityModel.prototype = {
25 __proto__: WebInspector.SDKModel.prototype, 25 __proto__: WebInspector.SDKModel.prototype,
26 26
27 /** 27 showCertificateViewer: function()
28 * @param {!SecurityAgent.CertificateId} certificateId
29 */
30 showCertificateViewer: function(certificateId)
31 { 28 {
32 this._securityAgent.showCertificateViewer(certificateId); 29 this._securityAgent.showCertificateViewer();
33 } 30 }
34 } 31 }
35 32
36 /** 33 /**
37 * @param {!WebInspector.Target} target 34 * @param {!WebInspector.Target} target
38 * @return {?WebInspector.SecurityModel} 35 * @return {?WebInspector.SecurityModel}
39 */ 36 */
40 WebInspector.SecurityModel.fromTarget = function(target) 37 WebInspector.SecurityModel.fromTarget = function(target)
41 { 38 {
42 var model = /** @type {?WebInspector.SecurityModel} */ (target.model(WebInsp ector.SecurityModel)); 39 var model = /** @type {?WebInspector.SecurityModel} */ (target.model(WebInsp ector.SecurityModel));
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 * @param {!Array<!SecurityAgent.SecurityStateExplanation>=} explanations 104 * @param {!Array<!SecurityAgent.SecurityStateExplanation>=} explanations
108 * @param {!SecurityAgent.InsecureContentStatus=} insecureContentStatus 105 * @param {!SecurityAgent.InsecureContentStatus=} insecureContentStatus
109 * @param {boolean=} schemeIsCryptographic 106 * @param {boolean=} schemeIsCryptographic
110 */ 107 */
111 securityStateChanged: function(securityState, explanations, insecureContentS tatus, schemeIsCryptographic) 108 securityStateChanged: function(securityState, explanations, insecureContentS tatus, schemeIsCryptographic)
112 { 109 {
113 var pageSecurityState = new WebInspector.PageSecurityState(securityState , explanations || [], insecureContentStatus || null, schemeIsCryptographic || fa lse); 110 var pageSecurityState = new WebInspector.PageSecurityState(securityState , explanations || [], insecureContentStatus || null, schemeIsCryptographic || fa lse);
114 this._model.dispatchEventToListeners(WebInspector.SecurityModel.Events.S ecurityStateChanged, pageSecurityState); 111 this._model.dispatchEventToListeners(WebInspector.SecurityModel.Events.S ecurityStateChanged, pageSecurityState);
115 } 112 }
116 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698