| Index: Source/core/timing/PerformanceRenderTiming.h
|
| diff --git a/Source/modules/filesystem/FileEntrySync.h b/Source/core/timing/PerformanceRenderTiming.h
|
| similarity index 65%
|
| copy from Source/modules/filesystem/FileEntrySync.h
|
| copy to Source/core/timing/PerformanceRenderTiming.h
|
| index 78d47bf9c2d0f172afd8cfbda146c5523ee6cda8..bb989993b7f3c6d067425e18dbe64385bdbe6e27 100644
|
| --- a/Source/modules/filesystem/FileEntrySync.h
|
| +++ b/Source/core/timing/PerformanceRenderTiming.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 PerformanceRenderTiming_h
|
| +#define PerformanceRenderTiming_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 PerformanceRenderTiming final : public PerformanceEntry {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static FileEntrySync* create(DOMFileSystemBase* fileSystem, const String& fullPath)
|
| + static PassRefPtrWillBeRawPtr<PerformanceRenderTiming> create(Document* requestingDocument, unsigned sourceFrame, double startTime)
|
| {
|
| - return new FileEntrySync(fileSystem, fullPath);
|
| + return adoptRefWillBeNoop(new PerformanceRenderTiming(requestingDocument, sourceFrame, startTime));
|
| }
|
|
|
| - virtual bool isFile() const override { return true; }
|
| + unsigned sourceFrame() const;
|
|
|
| - File* file(ExceptionState&);
|
| - FileWriterSync* createWriter(ExceptionState&);
|
| + virtual bool isRender() override { return true; }
|
|
|
| virtual void trace(Visitor*) override;
|
|
|
| private:
|
| - FileEntrySync(DOMFileSystemBase*, const String& fullPath);
|
| -};
|
| + PerformanceRenderTiming(Document* requestingDocument, unsigned sourceFrame, double startTime);
|
| + virtual ~PerformanceRenderTiming();
|
|
|
| -DEFINE_TYPE_CASTS(FileEntrySync, EntrySync, entry, entry->isFile(), entry.isFile());
|
| + unsigned m_sourceFrame;
|
| + RefPtr<Document> m_requestingDocument;
|
| +};
|
|
|
| } // namespace blink
|
|
|
| -#endif // FileEntrySync_h
|
| +#endif // PerformanceRenderTiming_h
|
|
|