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

Unified Diff: Source/core/timing/PerformanceRenderTiming.h

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update LayoutTests for new properties Created 5 years, 7 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/timing/PerformanceEntry.h ('k') | Source/core/timing/PerformanceRenderTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceRenderTiming.h
diff --git a/Source/modules/filesystem/FileEntrySync.h b/Source/core/timing/PerformanceRenderTiming.h
similarity index 65%
copy from Source/modules/filesystem/FileEntrySync.h
copy to Source/core/timing/PerformanceRenderTiming.h
index cb02f7df97a5254a9d682b8fd3d1bfa2dc40b1a5..e8634de0f8373d931358cd5bac26066345eaae9c 100644
--- a/Source/modules/filesystem/FileEntrySync.h
+++ b/Source/core/timing/PerformanceRenderTiming.h
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Intel Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,40 +29,40 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FileEntrySync_h
-#define FileEntrySync_h
+#ifndef PerformanceRenderTiming_h
+#define PerformanceRenderTiming_h
-#include "modules/filesystem/EntrySync.h"
+#include "core/timing/PerformanceEntry.h"
#include "platform/heap/Handle.h"
+#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class ExceptionState;
-class File;
-class FileWriterSync;
+class Document;
-class FileEntrySync final : public EntrySync {
+class PerformanceRenderTiming final : public PerformanceEntry {
DEFINE_WRAPPERTYPEINFO();
public:
- static FileEntrySync* create(DOMFileSystemBase* fileSystem, const String& fullPath)
+ static PerformanceRenderTiming* create(Document* requestingDocument, unsigned sourceFrame, double startTime, double finishTime)
{
- return new FileEntrySync(fileSystem, fullPath);
+ return new PerformanceRenderTiming(requestingDocument, sourceFrame, startTime, finishTime);
}
- virtual bool isFile() const override { return true; }
+ unsigned sourceFrame() const;
- File* file(ExceptionState&);
- FileWriterSync* createWriter(ExceptionState&);
+ virtual bool isRender() override { return true; }
DECLARE_VIRTUAL_TRACE();
private:
- FileEntrySync(DOMFileSystemBase*, const String& fullPath);
-};
+ PerformanceRenderTiming(Document* requestingDocument, unsigned sourceFrame, double startTime, double finishTime);
+ virtual ~PerformanceRenderTiming();
-DEFINE_TYPE_CASTS(FileEntrySync, EntrySync, entry, entry->isFile(), entry.isFile());
+ unsigned m_sourceFrame;
+ RefPtr<Document> m_requestingDocument;
+};
} // namespace blink
-#endif // FileEntrySync_h
+#endif // PerformanceRenderTiming_h
« no previous file with comments | « Source/core/timing/PerformanceEntry.h ('k') | Source/core/timing/PerformanceRenderTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698