blob: eee16ea524fd3f893c1187df1297f3148248c3e2 [file] [log] [blame]
// Copyright 2019 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.
#ifndef CHROME_BROWSER_ANDROID_PASSWORD_EDIT_DELEGATE_H_
#define CHROME_BROWSER_ANDROID_PASSWORD_EDIT_DELEGATE_H_
#include <string>
// An interface used for launching the entry editor and editing a credential
// record.
class PasswordEditDelegate {
public:
PasswordEditDelegate() = default;
PasswordEditDelegate(const PasswordEditDelegate&) = delete;
PasswordEditDelegate& operator=(const PasswordEditDelegate&) = delete;
virtual ~PasswordEditDelegate() = default;
// The method edits a password form held by the delegate. |new_username| and
// |new_password| are user input from the PasswordEntryEditor.
virtual void EditSavedPassword(const std::u16string& new_username,
const std::u16string& new_password) = 0;
};
#endif // CHROME_BROWSER_ANDROID_PASSWORD_EDIT_DELEGATE_H_