Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / tracing / importer / importer.html
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7 <link rel="import" href="/tvcm.html">
8 <script>
9 'use strict';
10
11 /**
12  * @fileoverview Base class for trace data importers.
13  */
14 tvcm.exportTo('tracing.importer', function() {
15   function Importer() { }
16
17   Importer.prototype = {
18     __proto__: Object.prototype,
19
20     /**
21      * Called by the Model to extract one or more subtraces from the event data.
22      */
23     extractSubtraces: function() {
24       return [];
25     },
26
27     /**
28      * Called to import events into the Model.
29      */
30     importEvents: function() {
31     },
32
33     /**
34      * Called to import sample data into the Model.
35      */
36     importSampleData: function() {
37     },
38
39     /**
40      * Called by the Model after all other importers have imported their
41      * events.
42      */
43     finalizeImport: function() {
44     },
45
46     /**
47      * Called by the Model to join references between objects, after final
48      * model bounds have been computed.
49      */
50     joinRefs: function() {
51     }
52   };
53
54   return {
55     Importer: Importer
56   };
57 });
58 </script>