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

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: Add Experimental Blink Feature flag for this change Created 5 years, 8 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
Index: Source/core/timing/PerformanceCompositeTiming.h
diff --git a/Source/modules/filesystem/FileEntrySync.h b/Source/core/timing/PerformanceCompositeTiming.h
similarity index 62%
copy from Source/modules/filesystem/FileEntrySync.h
copy to Source/core/timing/PerformanceCompositeTiming.h
index cb02f7df97a5254a9d682b8fd3d1bfa2dc40b1a5..42906d1390c774536f81d77355c2aa1b250a5fb0 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,41 @@
* 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/PassRefPtr.h"
+#include "wtf/RefPtr.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 PassRefPtrWillBeRawPtr<PerformanceCompositeTiming> create(Document* requestingDocument, unsigned sourceFrame, double startTime)
{
- return new FileEntrySync(fileSystem, fullPath);
+ return adoptRefWillBeNoop(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();
+ virtual void trace(Visitor*) override;
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

Powered by Google App Engine
This is Rietveld 408576698