Changeset 92623 in webkit
- Timestamp:
- Aug 8, 2011 12:54:46 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r92620 r92623 1 2011-08-08 Jochen Eisinger <jochen@chromium.org> 2 3 Use a raw pointer to the security origin in the ctor of FrameLoadRequest 4 https://bugs.webkit.org/show_bug.cgi?id=65852 5 6 Reviewed by Alexey Proskuryakov. 7 8 * loader/FrameLoadRequest.h: 9 (WebCore::FrameLoadRequest::FrameLoadRequest): 10 * loader/FrameLoader.cpp: 11 (WebCore::FrameLoader::changeLocation): 12 * loader/FrameLoader.h: 13 * loader/NavigationScheduler.cpp: 14 (WebCore::ScheduledURLNavigation::ScheduledURLNavigation): 15 (WebCore::ScheduledURLNavigation::fire): 16 (WebCore::ScheduledRedirect::ScheduledRedirect): 17 (WebCore::ScheduledLocationChange::ScheduledLocationChange): 18 (WebCore::ScheduledRefresh::ScheduledRefresh): 19 (WebCore::NavigationScheduler::scheduleLocationChange): 20 * loader/NavigationScheduler.h: 21 1 22 2011-08-08 Ryosuke Niwa <rniwa@webkit.org> 2 23 -
trunk/Source/WebCore/loader/FrameLoadRequest.h
r92572 r92623 34 34 struct FrameLoadRequest { 35 35 public: 36 explicit FrameLoadRequest( PassRefPtr<SecurityOrigin>requester)36 explicit FrameLoadRequest(SecurityOrigin* requester) 37 37 : m_requester(requester) 38 38 { 39 39 } 40 40 41 FrameLoadRequest( PassRefPtr<SecurityOrigin>requester, const ResourceRequest& resourceRequest)41 FrameLoadRequest(SecurityOrigin* requester, const ResourceRequest& resourceRequest) 42 42 : m_requester(requester) 43 43 , m_resourceRequest(resourceRequest) … … 45 45 } 46 46 47 FrameLoadRequest( PassRefPtr<SecurityOrigin>requester, const ResourceRequest& resourceRequest, const String& frameName)47 FrameLoadRequest(SecurityOrigin* requester, const ResourceRequest& resourceRequest, const String& frameName) 48 48 : m_requester(requester) 49 49 , m_resourceRequest(resourceRequest) -
trunk/Source/WebCore/loader/FrameLoader.cpp
r92592 r92623 260 260 } 261 261 262 void FrameLoader::changeLocation( PassRefPtr<SecurityOrigin>securityOrigin, const KURL& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool refresh)262 void FrameLoader::changeLocation(SecurityOrigin* securityOrigin, const KURL& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool refresh) 263 263 { 264 264 RefPtr<Frame> protect(m_frame); -
trunk/Source/WebCore/loader/FrameLoader.h
r92142 r92623 108 108 unsigned long loadResourceSynchronously(const ResourceRequest&, StoredCredentials, ResourceError&, ResourceResponse&, Vector<char>& data); 109 109 110 void changeLocation( PassRefPtr<SecurityOrigin>, const KURL&, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true, bool refresh = false);110 void changeLocation(SecurityOrigin*, const KURL&, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true, bool refresh = false); 111 111 void urlSelected(const KURL&, const String& target, PassRefPtr<Event>, bool lockHistory, bool lockBackForwardList, ReferrerPolicy); 112 112 void submitForm(PassRefPtr<FormSubmission>); -
trunk/Source/WebCore/loader/NavigationScheduler.cpp
r90346 r92623 95 95 class ScheduledURLNavigation : public ScheduledNavigation { 96 96 protected: 97 ScheduledURLNavigation(double delay, PassRefPtr<SecurityOrigin>securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad, bool isLocationChange)97 ScheduledURLNavigation(double delay, SecurityOrigin* securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad, bool isLocationChange) 98 98 : ScheduledNavigation(delay, lockHistory, lockBackForwardList, duringLoad, isLocationChange) 99 99 , m_securityOrigin(securityOrigin) … … 107 107 { 108 108 UserGestureIndicator gestureIndicator(wasUserGesture() ? DefinitelyProcessingUserGesture : DefinitelyNotProcessingUserGesture); 109 frame->loader()->changeLocation(m_securityOrigin , KURL(ParsedURLString, m_url), m_referrer, lockHistory(), lockBackForwardList(), false);109 frame->loader()->changeLocation(m_securityOrigin.get(), KURL(ParsedURLString, m_url), m_referrer, lockHistory(), lockBackForwardList(), false); 110 110 } 111 111 … … 147 147 class ScheduledRedirect : public ScheduledURLNavigation { 148 148 public: 149 ScheduledRedirect(double delay, PassRefPtr<SecurityOrigin>securityOrigin, const String& url, bool lockHistory, bool lockBackForwardList)149 ScheduledRedirect(double delay, SecurityOrigin* securityOrigin, const String& url, bool lockHistory, bool lockBackForwardList) 150 150 : ScheduledURLNavigation(delay, securityOrigin, url, String(), lockHistory, lockBackForwardList, false, false) 151 151 { … … 165 165 class ScheduledLocationChange : public ScheduledURLNavigation { 166 166 public: 167 ScheduledLocationChange( PassRefPtr<SecurityOrigin>securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad)167 ScheduledLocationChange(SecurityOrigin* securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad) 168 168 : ScheduledURLNavigation(0.0, securityOrigin, url, referrer, lockHistory, lockBackForwardList, duringLoad, true) { } 169 169 }; … … 171 171 class ScheduledRefresh : public ScheduledURLNavigation { 172 172 public: 173 ScheduledRefresh( PassRefPtr<SecurityOrigin>securityOrigin, const String& url, const String& referrer)173 ScheduledRefresh(SecurityOrigin* securityOrigin, const String& url, const String& referrer) 174 174 : ScheduledURLNavigation(0.0, securityOrigin, url, referrer, true, true, false, true) 175 175 { … … 333 333 } 334 334 335 void NavigationScheduler::scheduleLocationChange( PassRefPtr<SecurityOrigin>securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList)335 void NavigationScheduler::scheduleLocationChange(SecurityOrigin* securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList) 336 336 { 337 337 if (!shouldScheduleNavigation(url)) -
trunk/Source/WebCore/loader/NavigationScheduler.h
r85442 r92623 76 76 77 77 void scheduleRedirect(double delay, const String& url); 78 void scheduleLocationChange( PassRefPtr<SecurityOrigin>, const String& url, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true);78 void scheduleLocationChange(SecurityOrigin*, const String& url, const String& referrer, bool lockHistory = true, bool lockBackForwardList = true); 79 79 void scheduleFormSubmission(PassRefPtr<FormSubmission>); 80 80 void scheduleRefresh();
Note: See TracChangeset
for help on using the changeset viewer.