Update To 11.40.268.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="/base.html">
8 <script>
9 'use strict';
10
11 /**
12  * @fileoverview Base class for trace data importers.
13  */
14 tv.exportTo('tracing.importer', function() {
15   function Importer() { }
16
17   Importer.prototype = {
18     __proto__: Object.prototype,
19
20     /**
21      * Called by the Model to check whether the importer type stores the actual
22      * trace data or just holds it as container for further extraction.
23      */
24     isTraceDataContainer: function() {
25       return false;
26     },
27
28     /**
29      * Called by the Model to extract one or more subtraces from the event data.
30      */
31     extractSubtraces: function() {
32       return [];
33     },
34
35     /**
36      * Called to import events into the Model.
37      */
38     importEvents: function() {
39     },
40
41     /**
42      * Called to import sample data into the Model.
43      */
44     importSampleData: function() {
45     },
46
47     /**
48      * Called by the Model after all other importers have imported their
49      * events.
50      */
51     finalizeImport: function() {
52     },
53
54     /**
55      * Called by the Model to join references between objects, after final
56      * model bounds have been computed.
57      */
58     joinRefs: function() {
59     }
60   };
61
62   return {
63     Importer: Importer
64   };
65 });
66 </script>