Index: Source/core/timing/PerformanceObserverCallback.h |
diff --git a/Source/core/dom/MutationCallback.h b/Source/core/timing/PerformanceObserverCallback.h |
similarity index 77% |
copy from Source/core/dom/MutationCallback.h |
copy to Source/core/timing/PerformanceObserverCallback.h |
index 5bdfbfdaad15fa91535f5829281146fadfc62d9c..71e7f727fa495e493d77ac79bed53fe63079decc 100644 |
--- a/Source/core/dom/MutationCallback.h |
+++ b/Source/core/timing/PerformanceObserverCallback.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2011 Google Inc. All rights reserved. |
+ * Copyright (C) 2015 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,23 +28,23 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef MutationCallback_h |
-#define MutationCallback_h |
+#ifndef PerformanceObserverCallback_h |
+#define PerformanceObserverCallback_h |
#include "platform/heap/Handle.h" |
#include "wtf/RefPtr.h" |
-#include "wtf/Vector.h" |
namespace blink { |
-class MutationRecord; |
-class MutationObserver; |
+class ExecutionContext; |
+class PerformanceObserverEntryList; |
+class PerformanceObserver; |
-class MutationCallback : public NoBaseWillBeGarbageCollectedFinalized<MutationCallback> { |
+class PerformanceObserverCallback : public GarbageCollectedFinalized<PerformanceObserverCallback> { |
public: |
- virtual ~MutationCallback() { } |
+ virtual ~PerformanceObserverCallback() { } |
- virtual void call(const WillBeHeapVector<RefPtrWillBeMember<MutationRecord>>&, MutationObserver*) = 0; |
+ virtual void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) = 0; |
virtual ExecutionContext* executionContext() const = 0; |
DEFINE_INLINE_VIRTUAL_TRACE() { } |
@@ -52,4 +52,4 @@ public: |
} |
-#endif // MutationCallback_h |
+#endif // PerformanceObserverCallback_h |