Index: public/platform/WebCredentialManagerError.h |
diff --git a/public/platform/WebCredentialManagerError.h b/public/platform/WebCredentialManagerError.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc63c6f7ed28ccb0864fe33c25536f01b5060eac |
--- /dev/null |
+++ b/public/platform/WebCredentialManagerError.h |
@@ -0,0 +1,33 @@ |
+// 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 { |
+ // FIXME: This is a placeholder list of error conditions. We'll likely expand the |
+ // list as the API evolves. |
+ enum ErrorType { |
+ ErrorTypeDisabled = 0, |
+ ErrorTypeUnknown, |
+ ErrorTypeLast = ErrorTypeUnknown |
+ }; |
+ |
+ WebCredentialManagerError(ErrorType type, WebString message) |
+ : errorType(type) |
+ , errorMessage(message) |
+ { |
+ } |
+ |
+ ErrorType errorType; |
+ WebString errorMessage; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |