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

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

Issue 1774663002: Teach CRFO:CapturePageText to recognize page refreshes with long delays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits. Created 4 years, 9 months 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 USING_FAST_MALLOC_WILL_BE_REMOVED(NavigationScheduler); 54 USING_FAST_MALLOC_WILL_BE_REMOVED(NavigationScheduler);
55 public: 55 public:
56 static PassOwnPtrWillBeRawPtr<NavigationScheduler> create(LocalFrame* frame) 56 static PassOwnPtrWillBeRawPtr<NavigationScheduler> create(LocalFrame* frame)
57 { 57 {
58 return adoptPtrWillBeNoop(new NavigationScheduler(frame)); 58 return adoptPtrWillBeNoop(new NavigationScheduler(frame));
59 } 59 }
60 60
61 ~NavigationScheduler(); 61 ~NavigationScheduler();
62 62
63 bool locationChangePending(); 63 bool locationChangePending();
64 bool isNavigationScheduled() const; 64 bool isNavigationScheduledWithin(double intervalInSeconds) const;
65 65
66 void scheduleRedirect(double delay, const String& url); 66 void scheduleRedirect(double delay, const String& url);
67 void scheduleLocationChange(Document*, const String& url, bool replacesCurre ntItem = true); 67 void scheduleLocationChange(Document*, const String& url, bool replacesCurre ntItem = true);
68 void schedulePageBlock(Document*); 68 void schedulePageBlock(Document*);
69 void scheduleFormSubmission(Document*, PassRefPtrWillBeRawPtr<FormSubmission >); 69 void scheduleFormSubmission(Document*, PassRefPtrWillBeRawPtr<FormSubmission >);
70 void scheduleReload(); 70 void scheduleReload();
71 71
72 void startTimer(); 72 void startTimer();
73 void cancel(); 73 void cancel();
74 74
(...skipping 30 matching lines...) Expand all
105 } 105 }
106 static bool isNavigationAllowed() { return !s_navigationDisableCount; } 106 static bool isNavigationAllowed() { return !s_navigationDisableCount; }
107 107
108 private: 108 private:
109 static unsigned s_navigationDisableCount; 109 static unsigned s_navigationDisableCount;
110 }; 110 };
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif // NavigationScheduler_h 114 #endif // NavigationScheduler_h
OLDNEW
« no previous file with comments | « chrome/test/data/translate/refresh_meta_tag_long.html ('k') | third_party/WebKit/Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698