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. | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 ~NavigationScheduler(); | 62 ~NavigationScheduler(); |
63 | 63 |
64 bool locationChangePending(); | 64 bool locationChangePending(); |
65 bool isNavigationScheduledWithin(double intervalInSeconds) const; | 65 bool isNavigationScheduledWithin(double intervalInSeconds) const; |
66 | 66 |
67 void scheduleRedirect(double delay, const String& url); | 67 void scheduleRedirect(double delay, const String& url); |
68 void scheduleLocationChange(Document*, | 68 void scheduleLocationChange(Document*, |
69 const String& url, | 69 const String& url, |
70 bool replacesCurrentItem = true); | 70 bool replacesCurrentItem = true); |
71 void schedulePageBlock(Document*); | 71 void schedulePageBlock(Document*, int reason); |
72 void scheduleFormSubmission(Document*, FormSubmission*); | 72 void scheduleFormSubmission(Document*, FormSubmission*); |
73 void scheduleReload(); | 73 void scheduleReload(); |
74 | 74 |
75 void startTimer(); | 75 void startTimer(); |
76 void cancel(); | 76 void cancel(); |
77 | 77 |
78 DECLARE_TRACE(); | 78 DECLARE_TRACE(); |
79 | 79 |
80 private: | 80 private: |
81 explicit NavigationScheduler(LocalFrame*); | 81 explicit NavigationScheduler(LocalFrame*); |
(...skipping 26 matching lines...) Expand all Loading... |
108 } | 108 } |
109 static bool isNavigationAllowed() { return !s_navigationDisableCount; } | 109 static bool isNavigationAllowed() { return !s_navigationDisableCount; } |
110 | 110 |
111 private: | 111 private: |
112 static unsigned s_navigationDisableCount; | 112 static unsigned s_navigationDisableCount; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif // NavigationScheduler_h | 117 #endif // NavigationScheduler_h |
OLD | NEW |