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

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

Issue 328113004: Oilpan: make FrameLoadRequest be a stack allocated object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698