From e0d92f287e9f793f3980286c5eeabb3fff59b2c3 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Sat, 3 Apr 2010 06:04:27 +0000 Subject: Eliminate WebCore include paths when compiling Chromium code. In the process of trying to do this, I discovered some unnecessary config.h includes as well as some remaining WebCore function calls. R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/1521010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43574 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/extensions/v8/benchmarking_extension.cc | 9 ++++----- webkit/extensions/v8/gc_extension.cc | 1 - webkit/extensions/v8/gears_extension.cc | 1 - webkit/extensions/v8/interval_extension.cc | 1 - webkit/extensions/v8/playback_extension.cc | 1 - webkit/extensions/v8/profiler_extension.cc | 1 - 6 files changed, 4 insertions(+), 10 deletions(-) (limited to 'webkit/extensions') 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" -- cgit v1.1