| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PerformanceObserverCallback_h | 5 #ifndef PerformanceObserverCallback_h |
| 6 #define PerformanceObserverCallback_h | 6 #define PerformanceObserverCallback_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/RefPtr.h" | 9 #include "wtf/RefPtr.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class ExecutionContext; | 13 class ExecutionContext; |
| 14 class PerformanceObserverEntryList; | 14 class PerformanceObserverEntryList; |
| 15 class PerformanceObserver; | 15 class PerformanceObserver; |
| 16 | 16 |
| 17 class PerformanceObserverCallback : public GarbageCollectedFinalized<Performance
ObserverCallback> { | 17 class PerformanceObserverCallback : public GarbageCollectedFinalized<Performance
ObserverCallback> { |
| 18 public: | 18 public: |
| 19 virtual ~PerformanceObserverCallback() { } | 19 virtual ~PerformanceObserverCallback() { } |
| 20 | 20 |
| 21 virtual void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*
) = 0; | 21 virtual void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*
) = 0; |
| 22 virtual ExecutionContext* executionContext() const = 0; | 22 virtual ExecutionContext* getExecutionContext() const = 0; |
| 23 | 23 |
| 24 DEFINE_INLINE_VIRTUAL_TRACE() { } | 24 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 #endif // PerformanceObserverCallback_h | 29 #endif // PerformanceObserverCallback_h |
| OLD | NEW |