| 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 25 matching lines...) Expand all Loading... |
| 36 MediaKeyMessageEventInit(); | 36 MediaKeyMessageEventInit(); |
| 37 | 37 |
| 38 RefPtr<Uint8Array> message; | 38 RefPtr<Uint8Array> message; |
| 39 String destinationURL; | 39 String destinationURL; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 class MediaKeyMessageEvent FINAL : public Event { | 42 class MediaKeyMessageEvent FINAL : public Event { |
| 43 public: | 43 public: |
| 44 virtual ~MediaKeyMessageEvent(); | 44 virtual ~MediaKeyMessageEvent(); |
| 45 | 45 |
| 46 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create() | 46 static PassRefPtr<MediaKeyMessageEvent> create() |
| 47 { | 47 { |
| 48 return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyMessageEvent
); | 48 return adoptRef(new MediaKeyMessageEvent); |
| 49 } | 49 } |
| 50 | 50 |
| 51 static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicStrin
g& type, const MediaKeyMessageEventInit& initializer) | 51 static PassRefPtr<MediaKeyMessageEvent> create(const AtomicString& type, con
st MediaKeyMessageEventInit& initializer) |
| 52 { | 52 { |
| 53 return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyMessageEvent
(type, initializer)); | 53 return adoptRef(new MediaKeyMessageEvent(type, initializer)); |
| 54 } | 54 } |
| 55 | 55 |
| 56 virtual const AtomicString& interfaceName() const OVERRIDE; | 56 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 57 | 57 |
| 58 Uint8Array* message() const { return m_message.get(); } | 58 Uint8Array* message() const { return m_message.get(); } |
| 59 String destinationURL() const { return m_destinationURL; } | 59 String destinationURL() const { return m_destinationURL; } |
| 60 | 60 |
| 61 virtual void trace(Visitor*) OVERRIDE; | 61 virtual void trace(Visitor*) OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 MediaKeyMessageEvent(); | 64 MediaKeyMessageEvent(); |
| 65 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); | 65 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni
t& initializer); |
| 66 | 66 |
| 67 RefPtr<Uint8Array> m_message; | 67 RefPtr<Uint8Array> m_message; |
| 68 String m_destinationURL; | 68 String m_destinationURL; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace WebCore | 71 } // namespace WebCore |
| 72 | 72 |
| 73 #endif | 73 #endif |
| OLD | NEW |