1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved.
2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# found in the LICENSE file.
4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)class TimelineData(object):
6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  """ Subclasses of TimelineData carry timeline data from a source
7a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  (e.g. tracing, profiler, etc.) to the corresponding timeline importer.
8a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  """
9a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  def Serialize(self, f):
10a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    """Serializes the event data to a file-like object"""
11a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    pass
12a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
13a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  def EventData(self):
14a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    """Return the event data in a format that the corresponding timeline
15a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    importer understands"""
16a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    pass
17