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

Unified Diff: webkit/port/bindings/v8/extensions/Playback.h

Issue 40132: Refactor v8 extensions to make registration avoid having to use ChromiumBridg... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webkit/port/bindings/v8/extensions/Playback.h
===================================================================
--- webkit/port/bindings/v8/extensions/Playback.h (revision 10914)
+++ webkit/port/bindings/v8/extensions/Playback.h (working copy)
@@ -1,34 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-// The IntervalExtension is a v8 extension to implement a simple interval
-// class for measuring microsecond intervals.
-
-#ifndef PLAYBACK_EXTENSION_H__
-#define PLAYBACK_EXTENSION_H__
-
-#include "v8.h"
-
-namespace WebCore {
-
-// Inject code which overrides a few common JS functions for implementing
-// randomness. In order to implement effective record & playback of
-// websites, it is important that the URLs not change. Many popular web
-// based apps use randomness in URLs to unique-ify urls for proxies.
-// Unfortunately, this breaks playback.
-// To work around this, we take the two most common client-side randomness
-// generators and make them constant. They really need to be constant
-// (rather than a constant seed followed by constant change)
-// because the playback mode wants flexibility in how it plays them back
-// and cannot always guarantee that requests for randomness are played back
-// in exactly the same order in which they were recorded.
-class PlaybackExtension {
- public:
- static v8::Extension* Get();
-};
-
-}
-
-#endif // PLAYBACK_EXTENSION_H__
-

Powered by Google App Engine
This is Rietveld 408576698