Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: Source/core/loader/FormSubmission.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef FormSubmission_h 31 #ifndef FormSubmission_h
32 #define FormSubmission_h 32 #define FormSubmission_h
33 33
34 #include "core/loader/FormState.h" 34 #include "core/loader/FormState.h"
35 #include "heap/Handle.h"
35 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
36 #include "platform/weborigin/Referrer.h" 37 #include "platform/weborigin/Referrer.h"
37 38
38 namespace WTF{ 39 namespace WTF{
39 class TextEncoding; 40 class TextEncoding;
40 } 41 }
41 42
42 namespace WebCore { 43 namespace WebCore {
43 44
44 class Document; 45 class Document;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 86 private:
86 Method m_method; 87 Method m_method;
87 bool m_isMultiPartForm; 88 bool m_isMultiPartForm;
88 89
89 String m_action; 90 String m_action;
90 AtomicString m_target; 91 AtomicString m_target;
91 AtomicString m_encodingType; 92 AtomicString m_encodingType;
92 String m_acceptCharset; 93 String m_acceptCharset;
93 }; 94 };
94 95
95 static PassRefPtr<FormSubmission> create(HTMLFormElement*, const Attributes& , PassRefPtr<Event> event, FormSubmissionTrigger); 96 static PassRefPtr<FormSubmission> create(HTMLFormElement*, const Attributes& , PassRefPtrWillBeRawPtr<Event>, FormSubmissionTrigger);
96 97
97 void populateFrameLoadRequest(FrameLoadRequest&); 98 void populateFrameLoadRequest(FrameLoadRequest&);
98 99
99 KURL requestURL() const; 100 KURL requestURL() const;
100 101
101 Method method() const { return m_method; } 102 Method method() const { return m_method; }
102 const KURL& action() const { return m_action; } 103 const KURL& action() const { return m_action; }
103 const AtomicString& target() const { return m_target; } 104 const AtomicString& target() const { return m_target; }
104 void clearTarget() { m_target = nullAtom; } 105 void clearTarget() { m_target = nullAtom; }
105 FormState* state() const { return m_formState.get(); } 106 FormState* state() const { return m_formState.get(); }
106 FormData* data() const { return m_formData.get(); } 107 FormData* data() const { return m_formData.get(); }
107 Event* event() const { return m_event.get(); } 108 Event* event() const { return m_event.get(); }
108 109
109 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } 110 void setReferrer(const Referrer& referrer) { m_referrer = referrer; }
110 void setOrigin(const String& origin) { m_origin = origin; } 111 void setOrigin(const String& origin) { m_origin = origin; }
111 112
112 const String& result() const { return m_result; } 113 const String& result() const { return m_result; }
113 114
114 private: 115 private:
115 FormSubmission(Method, const KURL& action, const AtomicString& target, const AtomicString& contentType, PassRefPtr<FormState>, PassRefPtr<FormData>, const S tring& boundary, PassRefPtr<Event>); 116 FormSubmission(Method, const KURL& action, const AtomicString& target, const AtomicString& contentType, PassRefPtr<FormState>, PassRefPtr<FormData>, const S tring& boundary, PassRefPtrWillBeRawPtr<Event>);
116 // FormSubmission for DialogMethod 117 // FormSubmission for DialogMethod
117 FormSubmission(const String& result); 118 FormSubmission(const String& result);
118 119
119 // FIXME: Hold an instance of Attributes instead of individual members. 120 // FIXME: Hold an instance of Attributes instead of individual members.
120 Method m_method; 121 Method m_method;
121 KURL m_action; 122 KURL m_action;
122 AtomicString m_target; 123 AtomicString m_target;
123 AtomicString m_contentType; 124 AtomicString m_contentType;
124 RefPtr<FormState> m_formState; 125 RefPtr<FormState> m_formState;
125 RefPtr<FormData> m_formData; 126 RefPtr<FormData> m_formData;
126 String m_boundary; 127 String m_boundary;
127 RefPtr<Event> m_event; 128 RefPtrWillBePersistent<Event> m_event;
128 Referrer m_referrer; 129 Referrer m_referrer;
129 String m_origin; 130 String m_origin;
130 String m_result; 131 String m_result;
131 }; 132 };
132 133
133 } 134 }
134 135
135 #endif // FormSubmission_h 136 #endif // FormSubmission_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698