blob: 232a348d2ade8d1ab2c54a35afa4ae63c9000808 [file] [log] [blame]
// Copyright 2014 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.
#include <string>
#include "base/strings/string16.h"
namespace autofill {
class CardUnmaskDelegate {
struct UnmaskResponse {
UnmaskResponse(const UnmaskResponse& other);
// User input data.
base::string16 cvc;
// Two digit month.
base::string16 exp_month;
// Four digit year.
base::string16 exp_year;
// State of "copy to this device" checkbox.
bool should_store_pan;
// Called when the user has attempted a verification. Prompt is still
// open at this point.
virtual void OnUnmaskResponse(const UnmaskResponse& response) = 0;
// Called when the unmask prompt is closed (e.g., cancelled).
virtual void OnUnmaskPromptClosed() = 0;
} // namespace autofill