Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebCredentialManagerError.h
blob0e0d7b29036c47e827cba81f5078d1c3ef2b74d3
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.
5 #ifndef WebCredentialManagerError_h
6 #define WebCredentialManagerError_h
8 namespace blink {
10 struct WebCredentialManagerError {
11 // FIXME: This is a placeholder list of error conditions. We'll likely expand the
12 // list as the API evolves.
13 enum ErrorType {
14 ErrorTypeDisabled = 0,
15 ErrorTypePendingRequest,
16 ErrorTypePasswordStoreUnavailable,
17 ErrorTypeUnknown,
18 ErrorTypeLast = ErrorTypeUnknown
21 // FIXME: We need this to be an object for the moment to make the WebCallbacks templates
22 // happy. But, really, we probably just need the enum. We should fix that.
23 explicit WebCredentialManagerError(ErrorType type) : errorType(type) { }
25 ErrorType errorType;
28 } // namespace blink
30 #endif