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

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

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 21 matching lines...) Expand all
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 struct MediaKeyMessageEventInit : public EventInit { 35 struct MediaKeyMessageEventInit : public EventInit {
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 : public Event { 42 class MediaKeyMessageEvent FINAL : public Event {
43 public: 43 public:
44 virtual ~MediaKeyMessageEvent(); 44 virtual ~MediaKeyMessageEvent();
45 45
46 static PassRefPtr<MediaKeyMessageEvent> create() 46 static PassRefPtr<MediaKeyMessageEvent> create()
47 { 47 {
48 return adoptRef(new MediaKeyMessageEvent); 48 return adoptRef(new MediaKeyMessageEvent);
49 } 49 }
50 50
51 static PassRefPtr<MediaKeyMessageEvent> create(const AtomicString& type, con st MediaKeyMessageEventInit& initializer) 51 static PassRefPtr<MediaKeyMessageEvent> create(const AtomicString& type, con st MediaKeyMessageEventInit& initializer)
52 { 52 {
53 return adoptRef(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 private: 61 private:
62 MediaKeyMessageEvent(); 62 MediaKeyMessageEvent();
63 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni t& initializer); 63 MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventIni t& initializer);
64 64
65 RefPtr<Uint8Array> m_message; 65 RefPtr<Uint8Array> m_message;
66 String m_destinationURL; 66 String m_destinationURL;
67 }; 67 };
68 68
69 } // namespace WebCore 69 } // namespace WebCore
70 70
71 #endif 71 #endif
OLDNEW
« no previous file with comments | « Source/modules/encoding/TextEncoder.h ('k') | Source/modules/encryptedmedia/MediaKeyNeededEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698