Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from telemetry.page import page_measurement | |
| 6 | |
| 7 class NoOp(page_measurement.PageMeasurement): | |
| 8 def __init__(self): | |
| 9 super(NoOp, self).__init__('no_op') | |
| 10 | |
| 11 def CanRunForPage(self, page): | |
| 12 return hasattr(page, 'no_op') | |
|
tonyg
2013/12/03 02:46:44
Does this prevent it from working with most page s
| |
| 13 | |
| 14 def WillRunAction(self, page, tab, action): | |
| 15 pass | |
| 16 | |
| 17 def DidRunAction(self, page, tab, action): | |
|
tonyg
2013/12/03 02:46:44
Are Will/DidRunAction really necessary?
| |
| 18 pass | |
| 19 | |
| 20 def MeasurePage(self, page, tab, results): | |
| 21 pass | |
| OLD | NEW |