diff options
Diffstat (limited to 'webkit/extensions')
-rw-r--r-- | webkit/extensions/v8/benchmarking_extension.cc | 9 | ||||
-rw-r--r-- | webkit/extensions/v8/gc_extension.cc | 1 | ||||
-rw-r--r-- | webkit/extensions/v8/gears_extension.cc | 1 | ||||
-rw-r--r-- | webkit/extensions/v8/interval_extension.cc | 1 | ||||
-rw-r--r-- | webkit/extensions/v8/playback_extension.cc | 1 | ||||
-rw-r--r-- | webkit/extensions/v8/profiler_extension.cc | 1 |
6 files changed, 4 insertions, 10 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc index 0583f70..bac4677 100644 --- a/webkit/extensions/v8/benchmarking_extension.cc +++ b/webkit/extensions/v8/benchmarking_extension.cc @@ -2,12 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" -#include "Cache.h" #include "base/stats_table.h" +#include "third_party/WebKit/WebKit/chromium/public/WebCache.h" #include "webkit/extensions/v8/benchmarking_extension.h" #include "webkit/glue/webkit_glue.h" +using WebKit::WebCache; + namespace extensions_v8 { const char* kBenchmarkingExtensionName = "v8/Benchmarking"; @@ -57,9 +58,7 @@ class BenchmarkingWrapper : public v8::Extension { // TODO(mbelshe): should be enable/disable? webkit_glue::SetCacheMode(false); - // Disabling and re-enabling the cache forces it to flush. - WebCore::cache()->setDisabled(true); - WebCore::cache()->setDisabled(false); + WebCache::clear(); return v8::Undefined(); } diff --git a/webkit/extensions/v8/gc_extension.cc b/webkit/extensions/v8/gc_extension.cc index 50fbc4d..8746011 100644 --- a/webkit/extensions/v8/gc_extension.cc +++ b/webkit/extensions/v8/gc_extension.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" #include "webkit/extensions/v8/gc_extension.h" namespace extensions_v8 { diff --git a/webkit/extensions/v8/gears_extension.cc b/webkit/extensions/v8/gears_extension.cc index 5bcd6cd..200135d 100644 --- a/webkit/extensions/v8/gears_extension.cc +++ b/webkit/extensions/v8/gears_extension.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" #include "webkit/extensions/v8/gears_extension.h" namespace extensions_v8 { diff --git a/webkit/extensions/v8/interval_extension.cc b/webkit/extensions/v8/interval_extension.cc index 3383c71..95b69a5 100644 --- a/webkit/extensions/v8/interval_extension.cc +++ b/webkit/extensions/v8/interval_extension.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" #include "webkit/extensions/v8/interval_extension.h" #include "base/time.h" diff --git a/webkit/extensions/v8/playback_extension.cc b/webkit/extensions/v8/playback_extension.cc index 42d0525..63838fb 100644 --- a/webkit/extensions/v8/playback_extension.cc +++ b/webkit/extensions/v8/playback_extension.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" #include "webkit/extensions/v8/playback_extension.h" namespace extensions_v8 { diff --git a/webkit/extensions/v8/profiler_extension.cc b/webkit/extensions/v8/profiler_extension.cc index cbfc721..8f393d4 100644 --- a/webkit/extensions/v8/profiler_extension.cc +++ b/webkit/extensions/v8/profiler_extension.cc @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "config.h" #include "webkit/extensions/v8/profiler_extension.h" #include "base/profiler.h" |