| 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 MediaSession_h | 5 #ifndef MediaSession_h |
| 6 #define MediaSession_h | 6 #define MediaSession_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class MediaSession : public ScriptWrappable, public RefCountedWillBeNoBase<Media
Session> { | 13 class MediaSession : public GarbageCollected<MediaSession>, public ScriptWrappab
le { |
| 14 DEFINE_WRAPPERTYPEINFO(); | 14 DEFINE_WRAPPERTYPEINFO(); |
| 15 public: | 15 public: |
| 16 static RefPtrWillBeRawPtr<MediaSession> create(); | 16 static MediaSession* create(); |
| 17 | 17 |
| 18 void activate(); | 18 void activate(); |
| 19 void deactivate(); | 19 void deactivate(); |
| 20 | 20 |
| 21 DEFINE_INLINE_TRACE() { } |
| 22 |
| 21 private: | 23 private: |
| 22 MediaSession(); | 24 MediaSession(); |
| 23 }; | 25 }; |
| 24 | 26 |
| 25 } | 27 } // namespace blink |
| 26 | 28 |
| 27 #endif // MediaSession_h | 29 #endif // MediaSession_h |
| OLD | NEW |