| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "modules/EventModules.h" | 31 #include "modules/EventModules.h" |
| 32 #include "modules/encryptedmedia/MediaKeyMessageEventInit.h" | 32 #include "modules/encryptedmedia/MediaKeyMessageEventInit.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class DOMArrayBuffer; | 36 class DOMArrayBuffer; |
| 37 | 37 |
| 38 class MediaKeyMessageEvent final : public Event { | 38 class MediaKeyMessageEvent final : public Event { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 public: | 40 public: |
| 41 virtual ~MediaKeyMessageEvent(); | 41 ~MediaKeyMessageEvent() override; |
| 42 | 42 |
| 43 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() | 43 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() |
| 44 { | 44 { |
| 45 return adoptRefWillBeNoop(new MediaKeyMessageEvent); | 45 return adoptRefWillBeNoop(new MediaKeyMessageEvent); |
| 46 } | 46 } |
| 47 | 47 |
| 48 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) | 48 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) |
| 49 { | 49 { |
| 50 return adoptRefWillBeNoop(new MediaKeyMessageEvent(type, initializer)); | 50 return adoptRefWillBeNoop(new MediaKeyMessageEvent(type, initializer)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 virtual const AtomicString& interfaceName() const override; | 53 const AtomicString& interfaceName() const override; |
| 54 | 54 |
| 55 String messageType() const { return m_messageType; } | 55 String messageType() const { return m_messageType; } |
| 56 DOMArrayBuffer* message() const { return m_message.get(); } | 56 DOMArrayBuffer* message() const { return m_message.get(); } |
| 57 | 57 |
| 58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 MediaKeyMessageEvent(); | 61 MediaKeyMessageEvent(); |
| 62 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); | 62 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); |
| 63 | 63 |
| 64 String m_messageType; | 64 String m_messageType; |
| 65 RefPtr<DOMArrayBuffer> m_message; | 65 RefPtr<DOMArrayBuffer> m_message; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // MediaKeyMessageEvent_h | 70 #endif // MediaKeyMessageEvent_h |
| OLD | NEW |