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

Unified Diff: public/platform/WebCredentialManagerError.h

Issue 456293002: Credential manager: Introduce platform interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: feedback. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebCredentialManager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCredentialManagerError.h
diff --git a/public/platform/WebCredentialManagerError.h b/public/platform/WebCredentialManagerError.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3db57f3248e886e9aa3fe8ed931e0ad1d0d4aa3
--- /dev/null
+++ b/public/platform/WebCredentialManagerError.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef WebCredentialManagerError_h
+#define WebCredentialManagerError_h
+
+#include "public/platform/WebString.h"
+
+namespace blink {
+
+struct WebCredentialManagerError {
+ enum ErrorType {
+ DisabledErrorType = 0,
tkent 2014/08/12 00:30:14 The items should be ErrorTypeDisabled, ErrorTypeUn
+ UnknownErrorType,
+ LastErrorType = UnknownErrorType
+ };
+
+ WebCredentialManagerError(ErrorType type, WebString message)
+ : errorType(type)
+ , errorMessage(message)
+ {
+ }
+
+ ErrorType errorType;
+ WebString errorMessage;
+};
+
+} // namespace blink
+
+#endif
« 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