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

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

Issue 1304043006: Make classes and structures in core/loader fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
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 16 matching lines...) Expand all
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 "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/weborigin/KURL.h" 35 #include "platform/weborigin/KURL.h"
36 #include "platform/weborigin/Referrer.h" 36 #include "platform/weborigin/Referrer.h"
37 #include "wtf/Allocator.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class Event; 41 class Event;
41 class FormData; 42 class FormData;
42 struct FrameLoadRequest; 43 struct FrameLoadRequest;
43 class HTMLFormElement; 44 class HTMLFormElement;
44 45
45 class FormSubmission : public RefCountedWillBeGarbageCollectedFinalized<FormSubm ission> { 46 class FormSubmission : public RefCountedWillBeGarbageCollectedFinalized<FormSubm ission> {
46 public: 47 public:
47 enum Method { GetMethod, PostMethod, DialogMethod }; 48 enum Method { GetMethod, PostMethod, DialogMethod };
48 49
49 class Attributes { 50 class Attributes {
51 DISALLOW_ALLOCATION();
50 WTF_MAKE_NONCOPYABLE(Attributes); 52 WTF_MAKE_NONCOPYABLE(Attributes);
51 public: 53 public:
52 Attributes() 54 Attributes()
53 : m_method(GetMethod) 55 : m_method(GetMethod)
54 , m_isMultiPartForm(false) 56 , m_isMultiPartForm(false)
55 , m_encodingType("application/x-www-form-urlencoded", AtomicString:: ConstructFromLiteral) 57 , m_encodingType("application/x-www-form-urlencoded", AtomicString:: ConstructFromLiteral)
56 { 58 {
57 } 59 }
58 60
59 Method method() const { return m_method; } 61 Method method() const { return m_method; }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 RefPtrWillBeMember<HTMLFormElement> m_form; 119 RefPtrWillBeMember<HTMLFormElement> m_form;
118 RefPtr<FormData> m_formData; 120 RefPtr<FormData> m_formData;
119 String m_boundary; 121 String m_boundary;
120 RefPtrWillBeMember<Event> m_event; 122 RefPtrWillBeMember<Event> m_event;
121 String m_result; 123 String m_result;
122 }; 124 };
123 125
124 } 126 }
125 127
126 #endif // FormSubmission_h 128 #endif // FormSubmission_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698