| 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
|
|
|