| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 */ | 50 */ |
| 51 var CertificatesError; | 51 var CertificatesError; |
| 52 | 52 |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Error returned from C++ via a Promise reject callback, when some certificates | 55 * Error returned from C++ via a Promise reject callback, when some certificates |
| 56 * fail to be imported. | 56 * fail to be imported. |
| 57 * @typedef {{ | 57 * @typedef {{ |
| 58 * title: string, | 58 * title: string, |
| 59 * description: string | 59 * description: string |
| 60 * certificateErrors: !Array<{certificateName: string, error: string}> | 60 * certificateErrors: !Array<{name: string, error: string}> |
| 61 * }} | 61 * }} |
| 62 * @see chrome/browser/ui/webui/settings/certificates_handler.cc | 62 * @see chrome/browser/ui/webui/settings/certificates_handler.cc |
| 63 */ | 63 */ |
| 64 var CertificatesImportError; | 64 var CertificatesImportError; |
| 65 | 65 |
| 66 cr.define('settings', function() { | 66 cr.define('settings', function() { |
| 67 /** | 67 /** |
| 68 * Enumeration of all possible certificate types. | 68 * Enumeration of all possible certificate types. |
| 69 * @enum {string} | 69 * @enum {string} |
| 70 */ | 70 */ |
| (...skipping 187 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 |