OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/events/Event.h" | 30 #include "core/events/Event.h" |
31 #include "core/html/HTMLFormElement.h" | 31 #include "core/html/HTMLFormElement.h" |
32 #include "core/loader/FrameLoaderTypes.h" | 32 #include "core/loader/FrameLoaderTypes.h" |
33 #include "core/loader/SubstituteData.h" | 33 #include "core/loader/SubstituteData.h" |
34 #include "platform/network/ResourceRequest.h" | 34 #include "platform/network/ResourceRequest.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 class LocalFrame; | 37 class LocalFrame; |
38 | 38 |
39 struct FrameLoadRequest { | 39 struct FrameLoadRequest { |
| 40 STACK_ALLOCATED(); |
40 public: | 41 public: |
41 explicit FrameLoadRequest(Document* originDocument) | 42 explicit FrameLoadRequest(Document* originDocument) |
42 : m_originDocument(originDocument) | 43 : m_originDocument(originDocument) |
43 , m_lockBackForwardList(false) | 44 , m_lockBackForwardList(false) |
44 , m_clientRedirect(NotClientRedirect) | 45 , m_clientRedirect(NotClientRedirect) |
45 , m_shouldSendReferrer(MaybeSendReferrer) | 46 , m_shouldSendReferrer(MaybeSendReferrer) |
46 { | 47 { |
47 } | 48 } |
48 | 49 |
49 FrameLoadRequest(Document* originDocument, const ResourceRequest& resourceRe
quest) | 50 FrameLoadRequest(Document* originDocument, const ResourceRequest& resourceRe
quest) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 Event* triggeringEvent() const { return m_triggeringEvent.get(); } | 95 Event* triggeringEvent() const { return m_triggeringEvent.get(); } |
95 void setTriggeringEvent(PassRefPtrWillBeRawPtr<Event> triggeringEvent) { m_t
riggeringEvent = triggeringEvent; } | 96 void setTriggeringEvent(PassRefPtrWillBeRawPtr<Event> triggeringEvent) { m_t
riggeringEvent = triggeringEvent; } |
96 | 97 |
97 FormState* formState() const { return m_formState.get(); } | 98 FormState* formState() const { return m_formState.get(); } |
98 void setFormState(PassRefPtrWillBeRawPtr<FormState> formState) { m_formState
= formState; } | 99 void setFormState(PassRefPtrWillBeRawPtr<FormState> formState) { m_formState
= formState; } |
99 | 100 |
100 ShouldSendReferrer shouldSendReferrer() const { return m_shouldSendReferrer;
} | 101 ShouldSendReferrer shouldSendReferrer() const { return m_shouldSendReferrer;
} |
101 void setShouldSendReferrer(ShouldSendReferrer shouldSendReferrer) { m_should
SendReferrer = shouldSendReferrer; } | 102 void setShouldSendReferrer(ShouldSendReferrer shouldSendReferrer) { m_should
SendReferrer = shouldSendReferrer; } |
102 | 103 |
103 private: | 104 private: |
104 RefPtrWillBePersistent<Document> m_originDocument; | 105 RefPtrWillBeMember<Document> m_originDocument; |
105 ResourceRequest m_resourceRequest; | 106 ResourceRequest m_resourceRequest; |
106 AtomicString m_frameName; | 107 AtomicString m_frameName; |
107 SubstituteData m_substituteData; | 108 SubstituteData m_substituteData; |
108 bool m_lockBackForwardList; | 109 bool m_lockBackForwardList; |
109 ClientRedirectPolicy m_clientRedirect; | 110 ClientRedirectPolicy m_clientRedirect; |
110 RefPtrWillBePersistent<Event> m_triggeringEvent; | 111 RefPtrWillBeMember<Event> m_triggeringEvent; |
111 RefPtrWillBePersistent<FormState> m_formState; | 112 RefPtrWillBeMember<FormState> m_formState; |
112 ShouldSendReferrer m_shouldSendReferrer; | 113 ShouldSendReferrer m_shouldSendReferrer; |
113 }; | 114 }; |
114 | 115 |
115 } | 116 } |
116 | 117 |
117 #endif // FrameLoadRequest_h | 118 #endif // FrameLoadRequest_h |
OLD | NEW |