Index: third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h |
diff --git a/third_party/WebKit/Source/modules/filesystem/FileEntrySync.h b/third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h |
similarity index 70% |
copy from third_party/WebKit/Source/modules/filesystem/FileEntrySync.h |
copy to third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h |
index d6b8d7c746ca670797c58550d8ccacf513ec8d0e..2cd099845e76cea12784bda1e655654e0397f98d 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/FileEntrySync.h |
+++ b/third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h |
@@ -1,5 +1,6 @@ |
/* |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * Copyright (C) 2016 Google Inc. All rights reserved. |
+ * Copyright (C) 2016 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,33 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef FileEntrySync_h |
-#define FileEntrySync_h |
+#ifndef PerformanceLongTaskTiming_h |
+#define PerformanceLongTaskTiming_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 PerformanceLongTaskTiming final : public PerformanceEntry { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static FileEntrySync* create(DOMFileSystemBase* fileSystem, const String& fullPath) |
+ static PerformanceLongTaskTiming* create(double startTime, double endTime, String frameContextUrl) |
{ |
- return new FileEntrySync(fileSystem, fullPath); |
+ return new PerformanceLongTaskTiming(startTime, endTime, frameContextUrl); |
} |
- bool isFile() const override { return true; } |
- |
- File* file(ExceptionState&); |
- FileWriterSync* createWriter(ExceptionState&); |
- |
DECLARE_VIRTUAL_TRACE(); |
private: |
- FileEntrySync(DOMFileSystemBase*, const String& fullPath); |
+ PerformanceLongTaskTiming(double startTime, double endTime, String frameContextUrl); |
+ ~PerformanceLongTaskTiming() override; |
}; |
-DEFINE_TYPE_CASTS(FileEntrySync, EntrySync, entry, entry->isFile(), entry.isFile()); |
- |
} // namespace blink |
-#endif // FileEntrySync_h |
+#endif // PerformanceLongTaskTiming_h |