Disable stats, histogram and event tracing to avoid memory leaks (issue #328).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@402 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-12-02 18:06:28 +00:00
parent 47217b00d4
commit de192555cc
2 changed files with 38 additions and 0 deletions

View File

@ -149,6 +149,33 @@ BrowserWebKitInit::createMessagePortChannel() {
void BrowserWebKitInit::prefetchHostName(const WebKit::WebString&) { void BrowserWebKitInit::prefetchHostName(const WebKit::WebString&) {
} }
void BrowserWebKitInit::decrementStatsCounter(const char* name) {
}
void BrowserWebKitInit::incrementStatsCounter(const char* name) {
}
void BrowserWebKitInit::histogramCustomCounts(const char* name, int sample,
int min, int max,
int bucket_count) {
}
void BrowserWebKitInit::histogramEnumeration(const char* name, int sample,
int boundary_value) {
}
bool BrowserWebKitInit::isTraceEventEnabled() const {
return false;
}
void BrowserWebKitInit::traceEventBegin(const char* name, void* id,
const char* extra) {
}
void BrowserWebKitInit::traceEventEnd(const char* name, void* id,
const char* extra) {
}
WebKit::WebData BrowserWebKitInit::loadResource(const char* name) { WebKit::WebData BrowserWebKitInit::loadResource(const char* name) {
if (!strcmp(name, "deleteButton")) { if (!strcmp(name, "deleteButton")) {
// Create a red 30x30 square. // Create a red 30x30 square.

View File

@ -47,6 +47,17 @@ class BrowserWebKitInit : public webkit_glue::WebKitPlatformSupportImpl {
virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE; virtual bool isLinkVisited(unsigned long long linkHash) OVERRIDE;
virtual WebKit::WebMessagePortChannel* createMessagePortChannel() OVERRIDE; virtual WebKit::WebMessagePortChannel* createMessagePortChannel() OVERRIDE;
virtual void prefetchHostName(const WebKit::WebString&) OVERRIDE; virtual void prefetchHostName(const WebKit::WebString&) OVERRIDE;
virtual void decrementStatsCounter(const char* name) OVERRIDE;
virtual void incrementStatsCounter(const char* name) OVERRIDE;
virtual void histogramCustomCounts(const char* name, int sample, int min,
int max, int bucket_count) OVERRIDE;
virtual void histogramEnumeration(const char* name, int sample,
int boundary_value) OVERRIDE;
virtual bool isTraceEventEnabled() const OVERRIDE;
virtual void traceEventBegin(const char* name, void* id,
const char* extra) OVERRIDE;
virtual void traceEventEnd(const char* name, void* id,
const char* extra) OVERRIDE;
virtual WebKit::WebData loadResource(const char* name) OVERRIDE; virtual WebKit::WebData loadResource(const char* name) OVERRIDE;
virtual WebKit::WebString defaultLocale() OVERRIDE; virtual WebKit::WebString defaultLocale() OVERRIDE;
virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(