Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: Source/modules/encryptedmedia/MediaKeyMessageEvent.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaEncryptedEvent.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698