| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |