| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 if (lockBackForwardList) | 320 if (lockBackForwardList) |
| 321 request.setClientRedirect(ClientRedirect); | 321 request.setClientRedirect(ClientRedirect); |
| 322 m_frame->loader().load(request); | 322 m_frame->loader().load(request); |
| 323 return; | 323 return; |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 | 326 |
| 327 schedule(adoptPtr(new ScheduledLocationChange(originDocument, url, referrer,
lockBackForwardList))); | 327 schedule(adoptPtr(new ScheduledLocationChange(originDocument, url, referrer,
lockBackForwardList))); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void NavigationScheduler::schedulePageBlock(Document* originDocument, const Refe
rrer& referrer) |
| 331 { |
| 332 ASSERT(m_frame->page()); |
| 333 schedule(adoptPtr(new ScheduledLocationChange(originDocument, SecurityOrigin
::urlWithUniqueSecurityOrigin(), referrer, false))); |
| 334 } |
| 335 |
| 330 void NavigationScheduler::scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubm
ission> submission) | 336 void NavigationScheduler::scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubm
ission> submission) |
| 331 { | 337 { |
| 332 ASSERT(m_frame->page()); | 338 ASSERT(m_frame->page()); |
| 333 schedule(adoptPtr(new ScheduledFormSubmission(submission, mustLockBackForwar
dList(m_frame)))); | 339 schedule(adoptPtr(new ScheduledFormSubmission(submission, mustLockBackForwar
dList(m_frame)))); |
| 334 } | 340 } |
| 335 | 341 |
| 336 void NavigationScheduler::scheduleRefresh() | 342 void NavigationScheduler::scheduleRefresh() |
| 337 { | 343 { |
| 338 if (!shouldScheduleNavigation()) | 344 if (!shouldScheduleNavigation()) |
| 339 return; | 345 return; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 | 420 |
| 415 void NavigationScheduler::cancel() | 421 void NavigationScheduler::cancel() |
| 416 { | 422 { |
| 417 if (m_timer.isActive()) | 423 if (m_timer.isActive()) |
| 418 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); | 424 InspectorInstrumentation::frameClearedScheduledNavigation(m_frame); |
| 419 m_timer.stop(); | 425 m_timer.stop(); |
| 420 m_redirect.clear(); | 426 m_redirect.clear(); |
| 421 } | 427 } |
| 422 | 428 |
| 423 } // namespace WebCore | 429 } // namespace WebCore |
| OLD | NEW |