This reverts commit fd2457b10fc2713bfd5d86952216cf89b6283a90. Reason for revert: <INSERT REASONING HERE> Original change's description: > Roll chromium_revision e1ef7d4b6b..b47e7752c6 (568794:569173) > > Change log:e1ef7d4b6b..b47e7752c6> Full diff:e1ef7d4b6b..b47e7752c6> > Roll chromium third_party ab9fbe29c9..630af48a96 > Change log:ab9fbe29c9..630af48a96> > Changed dependencies: > * src/base:03e1bc561f..6070b24b9f> * src/build:bb306be407..511e258eee> * src/ios:48697bf3a1..ce1db7deb1> * src/testing:6440c4ea3a..80a4cfaab7> * src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/f153b902be..f3c454475a > * src/third_party/depot_tools:1cabdc4643..a28b14f122> * src/tools:66f1089d0c..f6bb2a6fb4> DEPS diff:e1ef7d4b6b..b47e7752c6/DEPS > > No update to Clang. > > TBR=buildbot@webrtc.org, > BUG=None > CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal > NO_AUTOIMPORT_DEPS_CHECK=true > > Change-Id: I7553549111225f2c5bc769dec114cd058ae699d5 > Reviewed-on: https://webrtc-review.googlesource.com/84600 > Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org> > Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#23692} TBR=buildbot@webrtc.org Change-Id: I7d136553622fe4c4e49dbd9c60406811a8b11bd8 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: None Cq-Include-Trybots: master.internal.tryserver.corp.webrtc:linux_internal Reviewed-on: https://webrtc-review.googlesource.com/84720 Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23708}
198 lines
7.0 KiB
JavaScript
198 lines
7.0 KiB
JavaScript
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// This file was generated by:
|
|
// tools/json_schema_compiler/compiler.py.
|
|
// NOTE: The format of types has changed. 'FooType' is now
|
|
// 'chrome.passwordsPrivate.FooType'.
|
|
// Please run the closure compiler before committing changes.
|
|
// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
|
|
|
|
/** @fileoverview Externs generated from namespace: passwordsPrivate */
|
|
|
|
/**
|
|
* @const
|
|
*/
|
|
chrome.passwordsPrivate = {};
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-ExportProgressStatus
|
|
*/
|
|
chrome.passwordsPrivate.ExportProgressStatus = {
|
|
NOT_STARTED: 'NOT_STARTED',
|
|
IN_PROGRESS: 'IN_PROGRESS',
|
|
SUCCEEDED: 'SUCCEEDED',
|
|
FAILED_CANCELLED: 'FAILED_CANCELLED',
|
|
FAILED_WRITE_FAILED: 'FAILED_WRITE_FAILED',
|
|
};
|
|
|
|
/**
|
|
* @typedef {{
|
|
* origin: string,
|
|
* shown: string,
|
|
* link: string
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-UrlCollection
|
|
*/
|
|
chrome.passwordsPrivate.UrlCollection;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* urls: !chrome.passwordsPrivate.UrlCollection,
|
|
* username: string
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-LoginPair
|
|
*/
|
|
chrome.passwordsPrivate.LoginPair;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* loginPair: !chrome.passwordsPrivate.LoginPair,
|
|
* numCharactersInPassword: number,
|
|
* federationText: (string|undefined),
|
|
* index: number
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUiEntry
|
|
*/
|
|
chrome.passwordsPrivate.PasswordUiEntry;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* index: number,
|
|
* plaintextPassword: string
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextPasswordEventParameters
|
|
*/
|
|
chrome.passwordsPrivate.PlaintextPasswordEventParameters;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* urls: !chrome.passwordsPrivate.UrlCollection,
|
|
* index: number
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-ExceptionEntry
|
|
*/
|
|
chrome.passwordsPrivate.ExceptionEntry;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* status: !chrome.passwordsPrivate.ExportProgressStatus,
|
|
* message: (string|undefined),
|
|
* }}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordExportProgress
|
|
*/
|
|
chrome.passwordsPrivate.PasswordExportProgress;
|
|
|
|
/**
|
|
* Removes the saved password corresponding to |loginPair|. If no saved password
|
|
* for this pair exists, this function is a no-op.
|
|
* @param {number} index The index for the password entry being removed.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSavedPassword
|
|
*/
|
|
chrome.passwordsPrivate.removeSavedPassword = function(index) {};
|
|
|
|
/**
|
|
* Removes the saved password exception corresponding to |exceptionUrl|. If no
|
|
* exception with this URL exists, this function is a no-op.
|
|
* @param {number} index The index for the exception url entry being removed.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePasswordException
|
|
*/
|
|
chrome.passwordsPrivate.removePasswordException = function(index) {};
|
|
|
|
/**
|
|
* Undoes the last removal of a saved password or exception.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-undoRemoveSavedPasswordOrException
|
|
*/
|
|
chrome.passwordsPrivate.undoRemoveSavedPasswordOrException = function() {};
|
|
|
|
/**
|
|
* Returns the plaintext password corresponding to |index|. Note that on some
|
|
* operating systems, this call may result in an OS-level reauthentication. Once
|
|
* the password has been fetched, it will be returned via the
|
|
* onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a
|
|
* callback for consistency.
|
|
* @param {number} index The index for the password entry being being retrieved.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestPlaintextPassword
|
|
*/
|
|
chrome.passwordsPrivate.requestPlaintextPassword = function(index) {};
|
|
|
|
/**
|
|
* Returns the list of saved passwords.
|
|
* @param {function(!Array<!chrome.passwordsPrivate.PasswordUiEntry>):void}
|
|
* callback Called with the list of saved passwords.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-getSavedPasswordList
|
|
*/
|
|
chrome.passwordsPrivate.getSavedPasswordList = function(callback) {};
|
|
|
|
/**
|
|
* Returns the list of password exceptions.
|
|
* @param {function(!Array<!chrome.passwordsPrivate.ExceptionEntry>):void}
|
|
* callback Called with the list of password exceptions.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-getPasswordExceptionList
|
|
*/
|
|
chrome.passwordsPrivate.getPasswordExceptionList = function(callback) {};
|
|
|
|
/**
|
|
* Triggers the Password Manager password import functionality.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-importPasswords
|
|
*/
|
|
chrome.passwordsPrivate.importPasswords = function() {};
|
|
|
|
/**
|
|
* Triggers the Password Manager password export functionality.
|
|
* @param {function():void}
|
|
* callback Called with no error, if the new export request was accepted and
|
|
* started. If rejected, <code>chrome.runtime.lastError</code> will be
|
|
* set to 'in-progress'.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-exportPasswords
|
|
*/
|
|
chrome.passwordsPrivate.exportPasswords = function(callback) {};
|
|
|
|
/**
|
|
* Triggers the cancelling of a password export flow.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-cancelExportPasswords
|
|
*/
|
|
chrome.passwordsPrivate.cancelExportPasswords = function() {};
|
|
|
|
/**
|
|
* Triggers the Password Manager password export status query functionality.
|
|
* @param {function(!chrome.passwordsPrivate.ExportProgressStatus):void}
|
|
* callback Called with the status of the current export.
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestExportProgressStatus
|
|
*/
|
|
chrome.passwordsPrivate.requestExportProgressStatus = function(callback) {};
|
|
|
|
/**
|
|
* Fired when the saved passwords list has changed, meaning that an entry has
|
|
* been added or removed.
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPasswordsListChanged
|
|
*/
|
|
chrome.passwordsPrivate.onSavedPasswordsListChanged;
|
|
|
|
/**
|
|
* Fired when the password exceptions list has changed, meaning that an entry
|
|
* has been added or removed.
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswordExceptionsListChanged
|
|
*/
|
|
chrome.passwordsPrivate.onPasswordExceptionsListChanged;
|
|
|
|
/**
|
|
* Fired when a plaintext password has been fetched in response to a call to
|
|
* chrome.passwordsPrivate.requestPlaintextPassword().
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlaintextPasswordRetrieved
|
|
*/
|
|
chrome.passwordsPrivate.onPlaintextPasswordRetrieved;
|
|
|
|
|
|
/**
|
|
* Fired when status of the export has progressed.
|
|
* @type {!ChromeEvent}
|
|
* @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswordsExportCompleted
|
|
*/
|
|
chrome.passwordsPrivate.onPasswordsFileExportProgress;
|