Index: Source/core/html/HTMLFormElement.h |
diff --git a/Source/core/html/HTMLFormElement.h b/Source/core/html/HTMLFormElement.h |
index fb7bd5ba012387f76339748f1f1eb3d01149b515..272e998d668e596fecf789bd5b978811c3b30005 100644 |
--- a/Source/core/html/HTMLFormElement.h |
+++ b/Source/core/html/HTMLFormElement.h |
@@ -29,6 +29,7 @@ |
#include "core/html/forms/RadioButtonGroupScope.h" |
#include "core/loader/FormSubmission.h" |
#include "wtf/OwnPtr.h" |
+#include "wtf/RefPtr.h" |
#include "wtf/WeakPtr.h" |
namespace WTF{ |
@@ -37,12 +38,14 @@ class TextEncoding; |
namespace WebCore { |
+class AutocompleteRequest; |
class Event; |
class FormAssociatedElement; |
class FormData; |
class HTMLFormControlElement; |
class HTMLImageElement; |
class HTMLInputElement; |
+class ScriptPromise; |
class HTMLFormElement FINAL : public HTMLElement { |
public: |
@@ -101,7 +104,7 @@ public: |
AutocompleteResultErrorInvalid, |
}; |
- void requestAutocomplete(const Dictionary&); |
+ ScriptPromise requestAutocomplete(const Dictionary&); |
void finishRequestAutocomplete(AutocompleteResult); |
DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete); |
@@ -175,9 +178,11 @@ private: |
bool m_wasDemoted; |
+ void doFinishRequestAutocomplete(AutocompleteResult, PassOwnPtr<AutocompleteRequest>); |
void requestAutocompleteTimerFired(Timer<HTMLFormElement>*); |
- WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_pendingAutocompleteEvents; |
+ OwnPtr<AutocompleteRequest> m_pendingAutocompleteRequest; |
+ Vector<OwnPtr<AutocompleteRequest> > m_finishedAutocompleteRequests; |
Timer<HTMLFormElement> m_requestAutocompleteTimer; |
}; |