| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 37 #include "platform/weborigin/Referrer.h" | 37 #include "platform/weborigin/Referrer.h" |
| 38 #include "wtf/Allocator.h" | 38 #include "wtf/Allocator.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Document; | 42 class Document; |
| 43 class EncodedFormData; | 43 class EncodedFormData; |
| 44 class Event; | 44 class Event; |
| 45 class HTMLFormControlElement; |
| 45 class HTMLFormElement; | 46 class HTMLFormElement; |
| 46 | 47 |
| 47 class FormSubmission : public GarbageCollectedFinalized<FormSubmission> { | 48 class FormSubmission : public GarbageCollectedFinalized<FormSubmission> { |
| 48 public: | 49 public: |
| 49 enum SubmitMethod { GetMethod, PostMethod, DialogMethod }; | 50 enum SubmitMethod { GetMethod, PostMethod, DialogMethod }; |
| 50 | 51 |
| 51 class Attributes { | 52 class Attributes { |
| 52 DISALLOW_NEW(); | 53 DISALLOW_NEW(); |
| 53 WTF_MAKE_NONCOPYABLE(Attributes); | 54 WTF_MAKE_NONCOPYABLE(Attributes); |
| 54 public: | 55 public: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 83 private: | 84 private: |
| 84 SubmitMethod m_method; | 85 SubmitMethod m_method; |
| 85 bool m_isMultiPartForm; | 86 bool m_isMultiPartForm; |
| 86 | 87 |
| 87 String m_action; | 88 String m_action; |
| 88 AtomicString m_target; | 89 AtomicString m_target; |
| 89 AtomicString m_encodingType; | 90 AtomicString m_encodingType; |
| 90 String m_acceptCharset; | 91 String m_acceptCharset; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 static FormSubmission* create(HTMLFormElement*, const Attributes&, Event*); | 94 static FormSubmission* create(HTMLFormElement*, const Attributes&, Event*, H
TMLFormControlElement* submitButton); |
| 94 DECLARE_TRACE(); | 95 DECLARE_TRACE(); |
| 95 | 96 |
| 96 FrameLoadRequest createFrameLoadRequest(Document* originDocument); | 97 FrameLoadRequest createFrameLoadRequest(Document* originDocument); |
| 97 | 98 |
| 98 KURL requestURL() const; | 99 KURL requestURL() const; |
| 99 | 100 |
| 100 SubmitMethod method() const { return m_method; } | 101 SubmitMethod method() const { return m_method; } |
| 101 const KURL& action() const { return m_action; } | 102 const KURL& action() const { return m_action; } |
| 102 const AtomicString& target() const { return m_target; } | 103 const AtomicString& target() const { return m_target; } |
| 103 void clearTarget() { m_target = nullAtom; } | 104 void clearTarget() { m_target = nullAtom; } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 119 Member<HTMLFormElement> m_form; | 120 Member<HTMLFormElement> m_form; |
| 120 RefPtr<EncodedFormData> m_formData; | 121 RefPtr<EncodedFormData> m_formData; |
| 121 String m_boundary; | 122 String m_boundary; |
| 122 Member<Event> m_event; | 123 Member<Event> m_event; |
| 123 String m_result; | 124 String m_result; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace blink | 127 } // namespace blink |
| 127 | 128 |
| 128 #endif // FormSubmission_h | 129 #endif // FormSubmission_h |
| OLD | NEW |