| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 4 * Copyright (C) 2009 Adam Barth. All rights reserved. | 4 * Copyright (C) 2009 Adam Barth. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class CORE_EXPORT NavigationScheduler final { | 85 class CORE_EXPORT NavigationScheduler final { |
| 86 WTF_MAKE_NONCOPYABLE(NavigationScheduler); | 86 WTF_MAKE_NONCOPYABLE(NavigationScheduler); |
| 87 DISALLOW_ALLOCATION(); | 87 DISALLOW_ALLOCATION(); |
| 88 public: | 88 public: |
| 89 explicit NavigationScheduler(LocalFrame*); | 89 explicit NavigationScheduler(LocalFrame*); |
| 90 ~NavigationScheduler(); | 90 ~NavigationScheduler(); |
| 91 | 91 |
| 92 bool locationChangePending(); | 92 bool locationChangePending(); |
| 93 bool isRedirect() const; |
| 93 | 94 |
| 94 void scheduleRedirect(double delay, const String& url); | 95 void scheduleRedirect(double delay, const String& url); |
| 95 void scheduleLocationChange(Document*, const String& url, bool replacesCurre
ntItem = true); | 96 void scheduleLocationChange(Document*, const String& url, bool replacesCurre
ntItem = true); |
| 96 void schedulePageBlock(Document*); | 97 void schedulePageBlock(Document*); |
| 97 void scheduleFormSubmission(Document*, PassRefPtrWillBeRawPtr<FormSubmission
>); | 98 void scheduleFormSubmission(Document*, PassRefPtrWillBeRawPtr<FormSubmission
>); |
| 98 void scheduleReload(); | 99 void scheduleReload(); |
| 99 | 100 |
| 100 void startTimer(); | 101 void startTimer(); |
| 101 void cancel(); | 102 void cancel(); |
| 102 | 103 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 119 | 120 |
| 120 RawPtrWillBeMember<LocalFrame> m_frame; | 121 RawPtrWillBeMember<LocalFrame> m_frame; |
| 121 Timer<NavigationScheduler> m_timer; | 122 Timer<NavigationScheduler> m_timer; |
| 122 OwnPtrWillBeMember<ScheduledNavigation> m_redirect; | 123 OwnPtrWillBeMember<ScheduledNavigation> m_redirect; |
| 123 int m_navigationDisableCount; | 124 int m_navigationDisableCount; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace blink | 127 } // namespace blink |
| 127 | 128 |
| 128 #endif // NavigationScheduler_h | 129 #endif // NavigationScheduler_h |
| OLD | NEW |