blob: 6e840ccea3e0742f3817a74848bf1f60c4cdcef2 [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 "base/macros.h"
#include "base/strings/string16.h"
// The delegate, which is created and destroyed together with the bridge, holds
// all the information about the password form that was loaded and edited in the
// PasswordEntryEditor.
class PasswordEditDelegate {
public:
PasswordEditDelegate() = default;
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 base::string16& new_username,
const base::string16& new_password) = 0;
DISALLOW_COPY_AND_ASSIGN(PasswordEditDelegate);
};
#endif // CHROME_BROWSER_ANDROID_PASSWORD_EDIT_DELEGATE_H_