Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: webkit/support/gc_extension.cc

Issue 10117022: Cleanup of v8 extension stuff. Playback extension is only used in chrome, so move it to chrome\rend… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/gc_extension.h ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/extensions/v8/gc_extension.h" 5 #include "webkit/support/gc_extension.h"
6 6
7 #include "v8/include/v8.h" 7 #include "v8/include/v8.h"
8 8
9 const char kGCExtensionName[] = "v8/GCController"; 9 const char kGCExtensionName[] = "v8/GCController";
10 10
11 namespace extensions_v8 { 11 namespace extensions_v8 {
12 12
13 // static 13 // static
14 v8::Extension* GCExtension::Get() { 14 v8::Extension* GCExtension::Get() {
15 v8::Extension* extension = new v8::Extension( 15 v8::Extension* extension = new v8::Extension(
16 kGCExtensionName, 16 kGCExtensionName,
17 "(function () {" 17 "(function () {"
18 " var v8_gc;" 18 " var v8_gc;"
19 " if (gc) v8_gc = gc;" 19 " if (gc) v8_gc = gc;"
20 " GCController = new Object();" 20 " GCController = new Object();"
21 " GCController.collect =" 21 " GCController.collect ="
22 " function() {if (v8_gc) v8_gc(); };" 22 " function() {if (v8_gc) v8_gc(); };"
23 " })();"); 23 " })();");
24 return extension; 24 return extension;
25 } 25 }
26 26
27 } // namespace extensions_v8 27 } // namespace extensions_v8
OLDNEW
« no previous file with comments | « webkit/support/gc_extension.h ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698