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 |