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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h

Issue 2244813002: LongTaskTiming: add idl, Experiment flag, PerformanceEntry and basic implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comment Created 4 years, 4 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: 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

Powered by Google App Engine
This is Rietveld 408576698