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

Side by Side Diff: Source/modules/encryptedmedia/MediaKeyNeededEvent.cpp

Issue 134663005: Add new needkey event for EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 { 35 {
36 } 36 }
37 37
38 MediaKeyNeededEvent::MediaKeyNeededEvent() 38 MediaKeyNeededEvent::MediaKeyNeededEvent()
39 { 39 {
40 ScriptWrappable::init(this); 40 ScriptWrappable::init(this);
41 } 41 }
42 42
43 MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, const MediaKe yNeededEventInit& initializer) 43 MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, const MediaKe yNeededEventInit& initializer)
44 : Event(type, initializer) 44 : Event(type, initializer)
45 , m_contentType(initializer.contentType)
45 , m_initData(initializer.initData) 46 , m_initData(initializer.initData)
46 { 47 {
47 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
48 } 49 }
49 50
50 MediaKeyNeededEvent::~MediaKeyNeededEvent() 51 MediaKeyNeededEvent::~MediaKeyNeededEvent()
51 { 52 {
52 } 53 }
53 54
54 const AtomicString& MediaKeyNeededEvent::interfaceName() const 55 const AtomicString& MediaKeyNeededEvent::interfaceName() const
55 { 56 {
56 return EventNames::MediaKeyNeededEvent; 57 return EventNames::MediaKeyNeededEvent;
57 } 58 }
58 59
59 } // namespace WebCore 60 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeyNeededEvent.h ('k') | Source/modules/encryptedmedia/MediaKeyNeededEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698