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

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

Issue 1309883003: Add hooks for capturing meaningful text info, gently. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Oopsie fixed. Created 5 years, 4 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 | Annotate | Revision Log
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 isNavigationScheduled() 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698