Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: public/platform/WebCredentialManagerError.h

Issue 456293002: Credential manager: Introduce platform interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ErrorTypeNaming. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/platform/WebCredentialManager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
10 namespace blink {
11
12 struct WebCredentialManagerError {
13 // FIXME: This is a placeholder list of error conditions. We'll likely expan d 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
OLDNEW
« no previous file with comments | « public/platform/WebCredentialManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698