普通文本  |  22行  |  550 B

# Copyright 2013 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.

from telemetry.page import page_measurement

class NoOp(page_measurement.PageMeasurement):
  def __init__(self):
    super(NoOp, self).__init__('no_op')

  def CanRunForPage(self, page):
    return hasattr(page, 'no_op')

  def WillRunAction(self, page, tab, action):
    pass

  def DidRunAction(self, page, tab, action):
    pass

  def MeasurePage(self, page, tab, results):
    pass