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

Unified Diff: Source/bindings/core/dart/DartIsolateDestructionObserver.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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
Index: Source/bindings/core/dart/DartIsolateDestructionObserver.h
diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.h b/Source/bindings/core/dart/DartIsolateDestructionObserver.h
similarity index 75%
copy from Source/modules/mediasource/HTMLVideoElementMediaSource.h
copy to Source/bindings/core/dart/DartIsolateDestructionObserver.h
index 0dd929b079d16846a64e5d3bb18af70a7dbc70f0..a6264661a025048afccdd6aba8a5a772e79f84d7 100644
--- a/Source/modules/mediasource/HTMLVideoElementMediaSource.h
+++ b/Source/bindings/core/dart/DartIsolateDestructionObserver.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2006-2012 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,26 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef HTMLVideoElementMediaSource_h
-#define HTMLVideoElementMediaSource_h
+#ifndef DartIsolateDestructionObserver_h
+#define DartIsolateDestructionObserver_h
-#include "platform/heap/Handle.h"
-#include "wtf/PassRefPtr.h"
+#include <dart_api.h>
namespace blink {
-class HTMLVideoElement;
-class VideoPlaybackQuality;
-
-class HTMLVideoElementMediaSource {
+class DartIsolateDestructionObserver {
public:
- static VideoPlaybackQuality* getVideoPlaybackQuality(HTMLVideoElement&);
+ DartIsolateDestructionObserver();
+ virtual ~DartIsolateDestructionObserver();
+
+ virtual void isolateDestroyed();
+
+ bool isIsolateAlive() { return m_isolate; }
+
+ Dart_Isolate isolate() { return m_isolate; }
private:
- HTMLVideoElementMediaSource();
- ~HTMLVideoElementMediaSource();
+ Dart_Isolate m_isolate;
};
}
-#endif
+#endif // DartIsolateDestructionObserver_h
« no previous file with comments | « Source/bindings/core/dart/DartInspectorTimeline.h ('k') | Source/bindings/core/dart/DartIsolateDestructionObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698