OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ScriptValue toJSONForBinding(ScriptState*) const; | 69 ScriptValue toJSONForBinding(ScriptState*) const; |
70 | 70 |
71 DECLARE_VIRTUAL_TRACE(); | 71 DECLARE_VIRTUAL_TRACE(); |
72 | 72 |
73 private: | 73 private: |
74 explicit Performance(LocalFrame*); | 74 explicit Performance(LocalFrame*); |
75 | 75 |
76 // ContextLifecycleObserver overrides. | 76 // ContextLifecycleObserver overrides. |
77 void contextDestroyed(ExecutionContext*) override; | 77 void contextDestroyed(ExecutionContext*) override; |
78 | 78 |
| 79 PerformanceNavigationTiming* createNavigationTimingInstance() override; |
| 80 |
79 static std::pair<String, DOMWindow*> sanitizedAttribution( | 81 static std::pair<String, DOMWindow*> sanitizedAttribution( |
80 ExecutionContext*, | 82 ExecutionContext*, |
81 bool hasMultipleContexts, | 83 bool hasMultipleContexts, |
82 LocalFrame* observerFrame); | 84 LocalFrame* observerFrame); |
83 | 85 |
84 // PerformanceMonitor::Client implementation. | 86 // PerformanceMonitor::Client implementation. |
85 void reportLongTask(double startTime, | 87 void reportLongTask(double startTime, |
86 double endTime, | 88 double endTime, |
87 ExecutionContext* taskContext, | 89 ExecutionContext* taskContext, |
88 bool hasMultipleContexts) override; | 90 bool hasMultipleContexts) override; |
89 | 91 |
90 mutable Member<PerformanceNavigation> m_navigation; | 92 mutable Member<PerformanceNavigation> m_navigation; |
91 mutable Member<PerformanceTiming> m_timing; | 93 mutable Member<PerformanceTiming> m_timing; |
92 }; | 94 }; |
93 | 95 |
94 } // namespace blink | 96 } // namespace blink |
95 | 97 |
96 #endif // Performance_h | 98 #endif // Performance_h |
OLD | NEW |