Skip to content
  • pilgrim@chromium.org's avatar
    Followup to "Call incrementStatsCounter directly" · 4e5d8f96
    pilgrim@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=83109
    
    Reviewed by Kentaro Hara.
    
    Now that incrementStatsCounter has been moved from
    PlatformSupport.h to Platform.h, we need to be able to call it directly
    from WebCore/bindings/v8/v8Proxy.h (for the INC_STATS macro). That
    means we need a new StatsCounter class in WebCore/platform/ and an
    implementation in
    WebCore/platform/chromium/StatsCounterChromium.cpp. Other ports
    are welcome to implement their own stats counters if they
    wish. This pattern was based on the
    HistogramSupport/HistogramSupportChromium classes.
    
    * CMakeLists.txt:
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/v8/V8Proxy.h:
    * bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
    (WebCore::V8DedicatedWorkerContext::postMessageCallback):
    (WebCore::V8DedicatedWorkerContext::webkitPostMessageCallback):
    * bindings/v8/custom/V8NotificationCenterCustom.cpp:
    (WebCore::V8NotificationCenter::createHTMLNotificationCallback):
    (WebCore::V8NotificationCenter::createNotificationCallback):
    (WebCore::V8NotificationCenter::requestPermissionCallback):
    * bindings/v8/custom/V8WorkerContextCustom.cpp:
    (WebCore::V8WorkerContext::importScriptsCallback):
    (WebCore::V8WorkerContext::setTimeoutCallback):
    (WebCore::V8WorkerContext::setIntervalCallback):
    * platform/StatsCounter.cpp: Added.
    (WebCore):
    (WebCore::StatsCounter::incrementStatsCounter):
    * platform/StatsCounter.h: Added.
    (WebCore):
    (StatsCounter):
    * platform/chromium/StatsCounterChromium.cpp: Added.
    (WebCore):
    (WebCore::StatsCounter::incrementStatsCounter):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4e5d8f96