Title: [197598] trunk/Source/WebKit2
- Revision
- 197598
- Author
- [email protected]
- Date
- 2016-03-04 16:40:14 -0800 (Fri, 04 Mar 2016)
Log Message
Stub API to support a debug menu option for measuring resource load statistics
https://bugs.webkit.org/show_bug.cgi?id=154998
<rdar://problem/24944604>
Reviewed by Andy Estes.
* UIProcess/API/APIWebsiteDataStore.cpp:
(API::WebsiteDataStore::resourceLoadStatisticsEnabled): Added stub.
(API::WebsiteDataStore::setResourceLoadStatisticsEnabled): Ditto.
* UIProcess/API/APIWebsiteDataStore.h:
* UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
(WKWebsiteDataStoreSetResourceLoadStatisticsEnabled): Added method that calls through
to the underlying APIWebsiteDataStore class.
(WKWebsiteDataStoreGetResourceLoadStatisticsEnabled): Ditto.
* UIProcess/API/C/WKWebsiteDataStoreRef.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (197597 => 197598)
--- trunk/Source/WebKit2/ChangeLog 2016-03-05 00:36:48 UTC (rev 197597)
+++ trunk/Source/WebKit2/ChangeLog 2016-03-05 00:40:14 UTC (rev 197598)
@@ -1,3 +1,21 @@
+2016-03-04 Brent Fulgham <[email protected]>
+
+ Stub API to support a debug menu option for measuring resource load statistics
+ https://bugs.webkit.org/show_bug.cgi?id=154998
+ <rdar://problem/24944604>
+
+ Reviewed by Andy Estes.
+
+ * UIProcess/API/APIWebsiteDataStore.cpp:
+ (API::WebsiteDataStore::resourceLoadStatisticsEnabled): Added stub.
+ (API::WebsiteDataStore::setResourceLoadStatisticsEnabled): Ditto.
+ * UIProcess/API/APIWebsiteDataStore.h:
+ * UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
+ (WKWebsiteDataStoreSetResourceLoadStatisticsEnabled): Added method that calls through
+ to the underlying APIWebsiteDataStore class.
+ (WKWebsiteDataStoreGetResourceLoadStatisticsEnabled): Ditto.
+ * UIProcess/API/C/WKWebsiteDataStoreRef.h:
+
2016-03-03 Enrica Casucci <[email protected]>
Add a mechanism to customize the long press action.
Modified: trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp (197597 => 197598)
--- trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp 2016-03-05 00:36:48 UTC (rev 197597)
+++ trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp 2016-03-05 00:40:14 UTC (rev 197598)
@@ -69,6 +69,16 @@
return m_websiteDataStore->isPersistent();
}
+bool WebsiteDataStore::resourceLoadStatisticsEnabled() const
+{
+ return m_websiteDataStore->resourceLoadStatisticsEnabled();
+}
+
+void WebsiteDataStore::setResourceLoadStatisticsEnabled(bool enabled)
+{
+ m_websiteDataStore->setResourceLoadStatisticsEnabled(enabled);
+}
+
#if !PLATFORM(COCOA) && !PLATFORM(EFL) && !PLATFORM(GTK)
WebKit::WebsiteDataStore::Configuration WebsiteDataStore::defaultDataStoreConfiguration()
{
Modified: trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.h (197597 => 197598)
--- trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.h 2016-03-05 00:36:48 UTC (rev 197597)
+++ trunk/Source/WebKit2/UIProcess/API/APIWebsiteDataStore.h 2016-03-05 00:40:14 UTC (rev 197598)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014, 2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -42,6 +42,9 @@
bool isPersistent();
+ bool resourceLoadStatisticsEnabled() const;
+ void setResourceLoadStatisticsEnabled(bool);
+
WebKit::WebsiteDataStore& websiteDataStore() { return *m_websiteDataStore; }
static String defaultApplicationCacheDirectory();
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.cpp (197597 => 197598)
--- trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.cpp 2016-03-05 00:36:48 UTC (rev 197597)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.cpp 2016-03-05 00:40:14 UTC (rev 197598)
@@ -43,3 +43,14 @@
{
return WebKit::toAPI(&API::WebsiteDataStore::createNonPersistentDataStore().leakRef());
}
+
+void WKWebsiteDataStoreSetResourceLoadStatisticsEnabled(WKWebsiteDataStoreRef dataStoreRef, bool enable)
+{
+ WebKit::toImpl(dataStoreRef)->setResourceLoadStatisticsEnabled(enable);
+}
+
+bool WKWebsiteDataStoreGetResourceLoadStatisticsEnabled(WKWebsiteDataStoreRef dataStoreRef)
+{
+ return WebKit::toImpl(dataStoreRef)->resourceLoadStatisticsEnabled();
+}
+
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.h (197597 => 197598)
--- trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.h 2016-03-05 00:36:48 UTC (rev 197597)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKWebsiteDataStoreRef.h 2016-03-05 00:40:14 UTC (rev 197598)
@@ -37,6 +37,9 @@
WK_EXPORT WKWebsiteDataStoreRef WKWebsiteDataStoreGetDefaultDataStore();
WK_EXPORT WKWebsiteDataStoreRef WKWebsiteDataStoreCreateNonPersistentDataStore();
+WK_EXPORT bool WKWebsiteDataStoreGetResourceLoadStatisticsEnabled(WKWebsiteDataStoreRef dataStoreRef);
+WK_EXPORT void WKWebsiteDataStoreSetResourceLoadStatisticsEnabled(WKWebsiteDataStoreRef dataStoreRef, bool enable);
+
#ifdef __cplusplus
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes