diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-12 19:39:50 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-12 19:39:50 +0000 |
commit | 82f541a8da17f812b4b67d3673f47bad81998629 (patch) | |
tree | c0f2a480c08e260c1f84def281271efa7db278ec /webkit/support | |
parent | c8b8b502f5d4b5ace8af3836f0734d269ff7383b (diff) | |
download | chromium_src-82f541a8da17f812b4b67d3673f47bad81998629.zip chromium_src-82f541a8da17f812b4b67d3673f47bad81998629.tar.gz chromium_src-82f541a8da17f812b4b67d3673f47bad81998629.tar.bz2 |
Remove gc extension from webkit/support
Nothing depends on this, although some webkit_unit_tests still depend on
--expose-gc.
Review URL: https://chromiumcodereview.appspot.com/22723005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217054 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support')
-rw-r--r-- | webkit/support/gc_extension.cc | 29 | ||||
-rw-r--r-- | webkit/support/gc_extension.h | 23 | ||||
-rw-r--r-- | webkit/support/test_webkit_platform_support.cc | 3 | ||||
-rw-r--r-- | webkit/support/webkit_support.gypi | 2 |
4 files changed, 0 insertions, 57 deletions
diff --git a/webkit/support/gc_extension.cc b/webkit/support/gc_extension.cc deleted file mode 100644 index bc57ad5..0000000 --- a/webkit/support/gc_extension.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "webkit/support/gc_extension.h" - -#include "v8/include/v8.h" - -const char kGCExtensionName[] = "v8/GCController"; - -namespace extensions_v8 { - -// static -v8::Extension* GCExtension::Get() { - v8::Extension* extension = new v8::Extension( - kGCExtensionName, - "(function () {" - " var v8_gc;" - " if (gc) v8_gc = gc;" - " GCController = new Object();" - " GCController.collect =" - " function() {if (v8_gc) v8_gc(); };" - " GCController.minorCollect =" - " function() {if (v8_gc) v8_gc(true); };" - " })();"); - return extension; -} - -} // namespace extensions_v8 diff --git a/webkit/support/gc_extension.h b/webkit/support/gc_extension.h deleted file mode 100644 index 85aaa19..0000000 --- a/webkit/support/gc_extension.h +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef WEBKIT_SUPPORT_GC_EXTENSION_H_ -#define WEBKIT_SUPPORT_GC_EXTENSION_H_ - -namespace v8 { -class Extension; -} - -namespace extensions_v8 { - -// GCExtension is a v8 extension to expose a method into JS for triggering -// garbage collection. This should only be used for debugging. -class GCExtension { - public: - static v8::Extension* Get(); -}; - -} // namespace extensions_v8 - -#endif // WEBKIT_SUPPORT_GC_EXTENSION_H_ diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc index e9b50b4..276a10e 100644 --- a/webkit/support/test_webkit_platform_support.cc +++ b/webkit/support/test_webkit_platform_support.cc @@ -32,7 +32,6 @@ #include "webkit/glue/simple_webmimeregistry_impl.h" #include "webkit/glue/webkit_glue.h" #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" -#include "webkit/support/gc_extension.h" #include "webkit/support/mock_webclipboard_impl.h" #include "webkit/support/web_gesture_curve_mock.h" #include "webkit/support/web_layer_tree_view_impl_for_testing.h" @@ -101,8 +100,6 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport() { // Test shell always exposes the GC. webkit_glue::SetJavaScriptFlags(" --expose-gc"); - // Expose GCController to JavaScript. - WebScriptController::registerExtension(extensions_v8::GCExtension::Get()); } TestWebKitPlatformSupport::~TestWebKitPlatformSupport() { diff --git a/webkit/support/webkit_support.gypi b/webkit/support/webkit_support.gypi index 25d9de1..bc7fae0b 100644 --- a/webkit/support/webkit_support.gypi +++ b/webkit/support/webkit_support.gypi @@ -47,8 +47,6 @@ 'sources': [ 'drt_application_mac.h', 'drt_application_mac.mm', - 'gc_extension.cc', - 'gc_extension.h', 'platform_support.h', 'platform_support_android.cc', 'platform_support_linux.cc', |