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

Unified Diff: tools/chrome_remote_control/chrome_remote_control/browser_options.py

Issue 10965027: Add web page replay to chrome_remote_control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: tools/chrome_remote_control/chrome_remote_control/browser_options.py
diff --git a/tools/chrome_remote_control/chrome_remote_control/browser_options.py b/tools/chrome_remote_control/chrome_remote_control/browser_options.py
index 500658184e6b3151902bc8da76baf96f227a601b..21487074765347d8e479dc1be1938ce588d13def 100644
--- a/tools/chrome_remote_control/chrome_remote_control/browser_options.py
+++ b/tools/chrome_remote_control/chrome_remote_control/browser_options.py
@@ -74,6 +74,16 @@ class BrowserOptions(optparse.Values):
help='When possible, will display the stdout of the process')
parser.add_option_group(group)
+ # Page set options
+ group = optparse.OptionGroup(parser, 'Page set options')
+ group.add_option('--record', action='store_true',
+ dest='record',
+ help='Record to the page set archive')
+ group.add_option('--replay', action='store_true',
+ dest='replay',
+ help='Replay from the page set archive')
+ parser.add_option_group(group)
+
# Debugging options
group = optparse.OptionGroup(parser, 'When things go wrong')
group.add_option(
@@ -99,6 +109,9 @@ class BrowserOptions(optparse.Values):
if self.browser_executable and not self.browser_type:
self.browser_type = 'exact'
+ if self.record and self.replay:
+ sys.stderr.write('Cannot --record and --replay together\n')
+ sys.exit(1)
if not self.browser_executable and not self.browser_type:
sys.stderr.write('Must provide --browser=<type>\n')
sys.exit(1)

Powered by Google App Engine
This is Rietveld 408576698