Index: Source/core/dom/AutocompleteError.h |
diff --git a/Source/core/dom/AutocompleteError.h b/Source/core/dom/AutocompleteError.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9fbfa201ab59df07fb899dae6b6f92f26174e70f |
--- /dev/null |
+++ b/Source/core/dom/AutocompleteError.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 AutocompleteError_h |
+#define AutocompleteError_h |
+ |
+#include "core/dom/DOMException.h" |
+#include "heap/Handle.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+ |
+namespace WebCore { |
+ |
+class AutocompleteError : public DOMException { |
+public: |
+ static PassRefPtrWillBeRawPtr<AutocompleteError> create(const String& reason) |
+ { |
+ return adoptRefWillBeNoop(new AutocompleteError(reason)); |
+ } |
+ |
+ const String& reason() const { return m_reason; } |
+ |
+private: |
+ explicit AutocompleteError(const String& reason); |
+ const String m_reason; |
+}; |
+ |
+} // namespace WebCore |
+ |
+#endif // AutocompleteError_h |