| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 5 * Copyright (C) 2009 Adam Barth. All rights reserved. | 5 * Copyright (C) 2009 Adam Barth. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 frame->loader().load(request); | 116 frame->loader().load(request); |
| 117 } | 117 } |
| 118 | 118 |
| 119 virtual void didStartTimer(Frame* frame, Timer<NavigationScheduler>* timer) | 119 virtual void didStartTimer(Frame* frame, Timer<NavigationScheduler>* timer) |
| 120 { | 120 { |
| 121 if (m_haveToldClient) | 121 if (m_haveToldClient) |
| 122 return; | 122 return; |
| 123 m_haveToldClient = true; | 123 m_haveToldClient = true; |
| 124 | 124 |
| 125 OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicat
or(); | 125 OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicat
or(); |
| 126 if (frame->loader().history()->currentItemShouldBeReplaced()) | 126 if (frame->page()->history()->currentItemShouldBeReplaced(frame)) |
| 127 setLockBackForwardList(true); | 127 setLockBackForwardList(true); |
| 128 } | 128 } |
| 129 | 129 |
| 130 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); } | 130 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); } |
| 131 String url() const { return m_url; } | 131 String url() const { return m_url; } |
| 132 String referrer() const { return m_referrer; } | 132 String referrer() const { return m_referrer; } |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 RefPtr<SecurityOrigin> m_securityOrigin; | 135 RefPtr<SecurityOrigin> m_securityOrigin; |
| 136 String m_url; | 136 String m_url; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 frame->loader().load(frameRequest); | 233 frame->loader().load(frameRequest); |
| 234 } | 234 } |
| 235 | 235 |
| 236 virtual void didStartTimer(Frame* frame, Timer<NavigationScheduler>* timer) | 236 virtual void didStartTimer(Frame* frame, Timer<NavigationScheduler>* timer) |
| 237 { | 237 { |
| 238 if (m_haveToldClient) | 238 if (m_haveToldClient) |
| 239 return; | 239 return; |
| 240 m_haveToldClient = true; | 240 m_haveToldClient = true; |
| 241 | 241 |
| 242 OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicat
or(); | 242 OwnPtr<UserGestureIndicator> gestureIndicator = createUserGestureIndicat
or(); |
| 243 if (frame->loader().history()->currentItemShouldBeReplaced()) | 243 if (frame->page()->history()->currentItemShouldBeReplaced(frame)) |
| 244 setLockBackForwardList(true); | 244 setLockBackForwardList(true); |
| 245 } | 245 } |
| 246 | 246 |
| 247 virtual bool isForm() const { return true; } | 247 virtual bool isForm() const { return true; } |
| 248 FormSubmission* submission() const { return m_submission.get(); } | 248 FormSubmission* submission() const { return m_submission.get(); } |
| 249 | 249 |
| 250 private: | 250 private: |
| 251 RefPtr<FormSubmission> m_submission; | 251 RefPtr<FormSubmission> m_submission; |
| 252 bool m_haveToldClient; | 252 bool m_haveToldClient; |
| 253 }; | 253 }; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 void NavigationScheduler::cancel() | 432 void NavigationScheduler::cancel() |
| 433 { | 433 { |
| 434 if (m_timer.isActive()) | 434 if (m_timer.isActive()) |
| 435 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); | 435 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); |
| 436 m_timer.stop(); | 436 m_timer.stop(); |
| 437 m_redirect.clear(); | 437 m_redirect.clear(); |
| 438 m_additionalFormSubmissions.clear(); | 438 m_additionalFormSubmissions.clear(); |
| 439 } | 439 } |
| 440 | 440 |
| 441 } // namespace WebCore | 441 } // namespace WebCore |
| OLD | NEW |