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

Side by Side Diff: chrome/renderer/playback_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
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/playback_extension.h" 5 #include "chrome/renderer/playback_extension.h"
6 6
7 #include "v8/include/v8.h" 7 #include "v8/include/v8.h"
8 8
9 const char kPlaybackExtensionName[] = "v8/PlaybackMode"; 9 const char kPlaybackExtensionName[] = "v8/PlaybackMode";
10 10
11 namespace extensions_v8 { 11 namespace extensions_v8 {
12 12
13 v8::Extension* PlaybackExtension::Get() { 13 v8::Extension* PlaybackExtension::Get() {
14 v8::Extension* extension = new v8::Extension( 14 v8::Extension* extension = new v8::Extension(
15 kPlaybackExtensionName, 15 kPlaybackExtensionName,
(...skipping 23 matching lines...) Expand all
39 " Date.__proto__ = orig_date;" 39 " Date.__proto__ = orig_date;"
40 " Date.prototype.constructor = Date;" 40 " Date.prototype.constructor = Date;"
41 " orig_date.now = function() {" 41 " orig_date.now = function() {"
42 " return new Date().getTime();" 42 " return new Date().getTime();"
43 " };" 43 " };"
44 "})()"); 44 "})()");
45 return extension; 45 return extension;
46 } 46 }
47 47
48 } // namespace extensions_v8 48 } // namespace extensions_v8
OLDNEW
« no previous file with comments | « chrome/renderer/playback_extension.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698