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

Unified Diff: Source/core/timing/PerformanceCompositeTiming.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/Performance.idl ('k') | Source/core/timing/PerformanceCompositeTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceCompositeTiming.h
diff --git a/Source/modules/filesystem/FileEntrySync.h b/Source/core/timing/PerformanceCompositeTiming.h
similarity index 65%
copy from Source/modules/filesystem/FileEntrySync.h
copy to Source/core/timing/PerformanceCompositeTiming.h
index cb02f7df97a5254a9d682b8fd3d1bfa2dc40b1a5..f049be71c38fa53a31e38abc59f1e28ba2e2b310 100644
--- a/Source/modules/filesystem/FileEntrySync.h
+++ b/Source/core/timing/PerformanceCompositeTiming.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 PerformanceCompositeTiming_h
+#define PerformanceCompositeTiming_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 PerformanceCompositeTiming final : public PerformanceEntry {
DEFINE_WRAPPERTYPEINFO();
public:
- static FileEntrySync* create(DOMFileSystemBase* fileSystem, const String& fullPath)
+ static PerformanceCompositeTiming* create(Document* requestingDocument, unsigned sourceFrame, double startTime)
{
- return new FileEntrySync(fileSystem, fullPath);
+ return new PerformanceCompositeTiming(requestingDocument, sourceFrame, startTime);
}
- virtual bool isFile() const override { return true; }
+ unsigned sourceFrame() const;
- File* file(ExceptionState&);
- FileWriterSync* createWriter(ExceptionState&);
+ virtual bool isComposite() override { return true; }
DECLARE_VIRTUAL_TRACE();
private:
- FileEntrySync(DOMFileSystemBase*, const String& fullPath);
-};
+ PerformanceCompositeTiming(Document* requestingDocument, unsigned sourceFrame, double startTime);
+ virtual ~PerformanceCompositeTiming();
-DEFINE_TYPE_CASTS(FileEntrySync, EntrySync, entry, entry->isFile(), entry.isFile());
+ unsigned m_sourceFrame;
+ RefPtr<Document> m_requestingDocument;
+};
} // namespace blink
-#endif // FileEntrySync_h
+#endif // PerformanceCompositeTiming_h
« no previous file with comments | « Source/core/timing/Performance.idl ('k') | Source/core/timing/PerformanceCompositeTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698