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

Side by Side Diff: webkit/extensions/v8/playback_extension.h

Issue 8741006: Add exports needed for glue to build as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r112585 Created 9 years 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 #ifndef WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_ 5 #ifndef WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_
6 #define WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_ 6 #define WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include "webkit/extensions/webkit_extensions_export.h"
10
9 namespace v8 { 11 namespace v8 {
10 class Extension; 12 class Extension;
11 } 13 }
12 14
13 namespace extensions_v8 { 15 namespace extensions_v8 {
14 16
15 // Inject code which overrides a few common JS functions for implementing 17 // Inject code which overrides a few common JS functions for implementing
16 // randomness. In order to implement effective record & playback of 18 // randomness. In order to implement effective record & playback of
17 // websites, it is important that the URLs not change. Many popular web 19 // websites, it is important that the URLs not change. Many popular web
18 // based apps use randomness in URLs to unique-ify urls for proxies. 20 // based apps use randomness in URLs to unique-ify urls for proxies.
19 // Unfortunately, this breaks playback. 21 // Unfortunately, this breaks playback.
20 // To work around this, we take the two most common client-side randomness 22 // To work around this, we take the two most common client-side randomness
21 // generators and make them constant. They really need to be constant 23 // generators and make them constant. They really need to be constant
22 // (rather than a constant seed followed by constant change) 24 // (rather than a constant seed followed by constant change)
23 // because the playback mode wants flexibility in how it plays them back 25 // because the playback mode wants flexibility in how it plays them back
24 // and cannot always guarantee that requests for randomness are played back 26 // and cannot always guarantee that requests for randomness are played back
25 // in exactly the same order in which they were recorded. 27 // in exactly the same order in which they were recorded.
26 class PlaybackExtension { 28 class PlaybackExtension {
27 public: 29 public:
28 static v8::Extension* Get(); 30 WEBKIT_EXTENSIONS_EXPORT static v8::Extension* Get();
29 }; 31 };
30 32
31 } // namespace extensions_v8 33 } // namespace extensions_v8
32 34
33 #endif // WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_ 35 #endif // WEBKIT_EXTENSIONS_V8_PLAYBACK_EXTENSION_H_
OLDNEW
« no previous file with comments | « webkit/extensions/v8/heap_profiler_extension.h ('k') | webkit/extensions/v8/profiler_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698