1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef WebCredentialManagerError_h
6#define WebCredentialManagerError_h
7
8#include "public/platform/WebString.h"
9
10namespace blink {
11
12struct WebCredentialManagerError {
13    // FIXME: This is a placeholder list of error conditions. We'll likely expand the
14    // list as the API evolves.
15    enum ErrorType {
16        ErrorTypeDisabled = 0,
17        ErrorTypeUnknown,
18        ErrorTypeLast = ErrorTypeUnknown
19    };
20
21    WebCredentialManagerError(ErrorType type, WebString message)
22        : errorType(type)
23        , errorMessage(message)
24    {
25    }
26
27    ErrorType errorType;
28    WebString errorMessage;
29};
30
31} // namespace blink
32
33#endif
34