diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 06:04:27 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-03 06:04:27 +0000 |
commit | e0d92f287e9f793f3980286c5eeabb3fff59b2c3 (patch) | |
tree | 9ad4d1a1e4b5165873437f3621339286b578bd81 /webkit/extensions | |
parent | 215160af1c6806ae0315e6ea762761d97a703b91 (diff) | |
download | chromium_src-e0d92f287e9f793f3980286c5eeabb3fff59b2c3.zip chromium_src-e0d92f287e9f793f3980286c5eeabb3fff59b2c3.tar.gz chromium_src-e0d92f287e9f793f3980286c5eeabb3fff59b2c3.tar.bz2 |
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
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" |