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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual 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 virtual void trace(Visitor*) override; | 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 |