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

Unified Diff: Source/core/dom/IdleCallbackDeadline.h

Issue 1316323002: Remove redundant DocumentLoadTiming references. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove redundant doc-time baselining 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/IdleCallbackDeadline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/IdleCallbackDeadline.h
diff --git a/Source/core/dom/IdleCallbackDeadline.h b/Source/core/dom/IdleCallbackDeadline.h
index d80f66ec732b8bf22ff49186be210e7484bacd39..349c3b2f5d815339fa8a7b6ac3e845c2003895ec 100644
--- a/Source/core/dom/IdleCallbackDeadline.h
+++ b/Source/core/dom/IdleCallbackDeadline.h
@@ -10,23 +10,21 @@
namespace blink {
-class DocumentLoadTiming;
-
class IdleCallbackDeadline : public GarbageCollected<IdleCallbackDeadline>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
-
public:
enum class CallbackType {
CalledWhenIdle,
CalledByTimeout
};
- DEFINE_INLINE_TRACE() {}
- static IdleCallbackDeadline* create(double deadlineMillis, CallbackType callbackType, const DocumentLoadTiming& timing)
+ static IdleCallbackDeadline* create(double deadlineSeconds, CallbackType callbackType)
{
- return new IdleCallbackDeadline(deadlineMillis, callbackType, timing);
+ return new IdleCallbackDeadline(deadlineSeconds, callbackType);
}
+ DEFINE_INLINE_TRACE() { }
+
double timeRemaining() const;
bool didTimeout() const
@@ -35,12 +33,12 @@ public:
}
private:
- IdleCallbackDeadline(double deadlineMillis, CallbackType, const DocumentLoadTiming&);
+ IdleCallbackDeadline(double deadlineSeconds, CallbackType);
- double m_deadlineMillis;
+ double m_deadlineSeconds;
CallbackType m_callbackType;
- const DocumentLoadTiming& m_timing;
};
-}
+
+} // namespace blink
#endif // IdleCallbackDeadline_h
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/IdleCallbackDeadline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698