Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Unified Diff: Source/core/timing/PerformanceObserverCallback.h

Issue 1198863006: First version of PerformanceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/timing/PerformanceObserver.idl ('k') | Source/core/timing/PerformanceObserverEntryList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/PerformanceObserverCallback.h
diff --git a/Source/core/timing/PerformanceObserverCallback.h b/Source/core/timing/PerformanceObserverCallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0cc4dd268eb8948ce5d37de91bbb298c55e23fd
--- /dev/null
+++ b/Source/core/timing/PerformanceObserverCallback.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PerformanceObserverCallback_h
+#define PerformanceObserverCallback_h
+
+#include "platform/heap/Handle.h"
+#include "wtf/RefPtr.h"
+
+namespace blink {
+
+class ExecutionContext;
+class PerformanceObserverEntryList;
+class PerformanceObserver;
+
+class PerformanceObserverCallback : public GarbageCollectedFinalized<PerformanceObserverCallback> {
+public:
+ virtual ~PerformanceObserverCallback() { }
+
+ virtual void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) = 0;
+ virtual ExecutionContext* executionContext() const = 0;
+
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
+};
+
+}
+
+#endif // PerformanceObserverCallback_h
« no previous file with comments | « Source/core/timing/PerformanceObserver.idl ('k') | Source/core/timing/PerformanceObserverEntryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698