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

Side by Side Diff: chrome/browser/resources/settings/certificate_manager_page/certificates_browser_proxy.js

Issue 1863733003: MD Settings: Certificate manager, implement importing CA certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 4 years, 8 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 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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698