OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @fileoverview A helper object used from the "Manage certificates" section | 6 * @fileoverview A helper object used from the "Manage certificates" section |
7 * to interact with the browser. | 7 * to interact with the browser. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 OTHER: 'other', | 73 OTHER: 'other', |
74 PERSONAL: 'personal', | 74 PERSONAL: 'personal', |
75 SERVER: 'server', | 75 SERVER: 'server', |
76 }; | 76 }; |
77 | 77 |
78 /** @interface */ | 78 /** @interface */ |
79 function CertificatesBrowserProxy() {} | 79 function CertificatesBrowserProxy() {} |
80 | 80 |
81 CertificatesBrowserProxy.prototype = { | 81 CertificatesBrowserProxy.prototype = { |
82 /** | 82 /** |
83 * Triggers two events in the following order | 83 * Triggers 5 events in the following order |
84 * 1) 'certificates-model-ready' event. | 84 * 1x 'certificates-model-ready' event. |
85 * 2) 'certificates-changed' event. | 85 * 4x 'certificates-changed' event, one for each certificate category. |
86 */ | 86 */ |
87 refreshCertificates: function() {}, | 87 refreshCertificates: function() {}, |
88 | 88 |
89 /** @param {string} id */ | 89 /** @param {string} id */ |
90 viewCertificate: function(id) {}, | 90 viewCertificate: function(id) {}, |
91 | 91 |
92 /** @param {string} id */ | 92 /** @param {string} id */ |
93 exportCertificate: function(id) {}, | 93 exportCertificate: function(id) {}, |
94 | 94 |
95 /** | 95 /** |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 importServerCertificate: function() { | 258 importServerCertificate: function() { |
259 return cr.sendWithPromise('importServerCertificate'); | 259 return cr.sendWithPromise('importServerCertificate'); |
260 }, | 260 }, |
261 }; | 261 }; |
262 | 262 |
263 return { | 263 return { |
264 CertificatesBrowserProxyImpl: CertificatesBrowserProxyImpl, | 264 CertificatesBrowserProxyImpl: CertificatesBrowserProxyImpl, |
265 CertificateType: CertificateType, | 265 CertificateType: CertificateType, |
266 }; | 266 }; |
267 }); | 267 }); |
OLD | NEW |