Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/loader/NavigationScheduler.h

Issue 669013002: Remove BackForwardClient, cleanup starting a history navigation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 explicit NavigationScheduler(LocalFrame*); 74 explicit NavigationScheduler(LocalFrame*);
75 ~NavigationScheduler(); 75 ~NavigationScheduler();
76 76
77 bool locationChangePending(); 77 bool locationChangePending();
78 78
79 void scheduleRedirect(double delay, const String& url); 79 void scheduleRedirect(double delay, const String& url);
80 void scheduleLocationChange(Document*, const String& url, bool lockBackForwa rdList = true); 80 void scheduleLocationChange(Document*, const String& url, bool lockBackForwa rdList = true);
81 void schedulePageBlock(Document*); 81 void schedulePageBlock(Document*);
82 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); 82 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>);
83 void scheduleReload(); 83 void scheduleReload();
84 void scheduleHistoryNavigation(int steps);
85 84
86 void startTimer(); 85 void startTimer();
87 void cancel(); 86 void cancel();
88 87
89 void trace(Visitor*); 88 void trace(Visitor*);
90 89
91 private: 90 private:
92 bool shouldScheduleNavigation() const; 91 bool shouldScheduleNavigation() const;
93 bool shouldScheduleNavigation(const String& url) const; 92 bool shouldScheduleNavigation(const String& url) const;
94 93
95 void timerFired(Timer<NavigationScheduler>*); 94 void timerFired(Timer<NavigationScheduler>*);
96 void schedule(PassOwnPtr<ScheduledNavigation>); 95 void schedule(PassOwnPtr<ScheduledNavigation>);
97 96
98 static bool mustLockBackForwardList(LocalFrame* targetFrame); 97 static bool mustLockBackForwardList(LocalFrame* targetFrame);
99 98
100 RawPtrWillBeMember<LocalFrame> m_frame; 99 RawPtrWillBeMember<LocalFrame> m_frame;
101 Timer<NavigationScheduler> m_timer; 100 Timer<NavigationScheduler> m_timer;
102 OwnPtr<ScheduledNavigation> m_redirect; 101 OwnPtr<ScheduledNavigation> m_redirect;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif // NavigationScheduler_h 106 #endif // NavigationScheduler_h
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698