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
10 struct WebCredentialManagerError
{
11 // FIXME: This is a placeholder list of error conditions. We'll likely expand the
12 // list as the API evolves.
14 ErrorTypeDisabled
= 0,
15 ErrorTypePendingRequest
,
16 ErrorTypePasswordStoreUnavailable
,
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
) { }