OLD | NEW |
(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 AutocompleteError_h |
| 6 #define AutocompleteError_h |
| 7 |
| 8 #include "core/dom/DOMException.h" |
| 9 #include "heap/Handle.h" |
| 10 #include "wtf/PassRefPtr.h" |
| 11 #include "wtf/RefCounted.h" |
| 12 |
| 13 namespace WebCore { |
| 14 |
| 15 class AutocompleteError : public DOMException { |
| 16 public: |
| 17 static PassRefPtrWillBeRawPtr<AutocompleteError> create(const String& reason
) |
| 18 { |
| 19 return adoptRefWillBeNoop(new AutocompleteError(reason)); |
| 20 } |
| 21 |
| 22 const String& reason() const { return m_reason; } |
| 23 |
| 24 private: |
| 25 explicit AutocompleteError(const String& reason); |
| 26 const String m_reason; |
| 27 }; |
| 28 |
| 29 } // namespace WebCore |
| 30 |
| 31 #endif // AutocompleteError_h |
OLD | NEW |