Skip to content
  • simonjam@chromium.org's avatar
    [Web Timing] Add a vendor-prefixed Performance Timeline API · b7dff976
    simonjam@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=80350
    
    As described here: http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PerformanceTimeline/Overview.html
    
    The API is there and should be correct, but it isn't particularly useful,
    because nothing is populated. Upcoming changes will add Navigation Timing
    and Resource Timing.
    
    Reviewed by Tony Gentilcore.
    
    No new tests. Functionality is disabled on all platforms.
    
    * CMakeLists.txt: Added PerformanceEntry* files.
    * DerivedSources.pri: Ditto.
    * GNUmakefile.list.am: Ditto.
    * WebCore.gypi: Ditto.
    * WebCore.vcproj/WebCore.vcproj: Ditto.
    * WebCore.xcodeproj/project.pbxproj: Ditto.
    * page/Performance.cpp:
    (WebCore::Performance::webkitGetEntries): Added.
    (WebCore::Performance::webkitGetEntriesByType): Added.
    (WebCore::Performance::webkitGetEntriesByName): Added.
    * page/Performance.h:
    (Performance):
    * page/Performance.idl:
    * page/PerformanceEntry.cpp: Added.
    (WebCore):
    (WebCore::PerformanceEntry::PerformanceEntry):
    (WebCore::PerformanceEntry::name):
    (WebCore::PerformanceEntry::entryType):
    (WebCore::PerformanceEntry::startTime):
    (WebCore::PerformanceEntry::duration):
    * page/PerformanceEntry.h: Added.
    (WebCore):
    (PerformanceEntry):
    * page/PerformanceEntry.idl: Added.
    * page/PerformanceEntryList.cpp: Added.
    (WebCore):
    (WebCore::PerformanceEntryList::PerformanceEntryList):
    (WebCore::PerformanceEntryList::~PerformanceEntryList):
    (WebCore::PerformanceEntryList::length):
    (WebCore::PerformanceEntryList::item):
    (WebCore::PerformanceEntryList::append):
    * page/PerformanceEntryList.h: Added.
    (WebCore):
    (PerformanceEntryList):
    (WebCore::PerformanceEntryList::create):
    * page/PerformanceEntryList.idl: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b7dff976