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

Side by Side Diff: content/renderer/media/webcontentdecryptionmodule_impl.cc

Issue 105143010: Connect WebMediaPlayerImpl to WebContentDecryptionModuleImpl for EME WD (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 7 years 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" 5 #include "content/renderer/media/webcontentdecryptionmodule_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 session_id, 203 session_id,
204 media_keys_.get(), 204 media_keys_.get(),
205 client, 205 client,
206 base::Bind(&WebContentDecryptionModuleImpl::OnSessionClosed, 206 base::Bind(&WebContentDecryptionModuleImpl::OnSessionClosed,
207 base::Unretained(this))); 207 base::Unretained(this)));
208 208
209 adapter_->AddSession(session_id, session); 209 adapter_->AddSession(session_id, session);
210 return session; 210 return session;
211 } 211 }
212 212
213 media::Decryptor* WebContentDecryptionModuleImpl::GetDecryptor() {
214 return media_keys_->GetDecryptor();
215 }
216
213 void WebContentDecryptionModuleImpl::OnSessionClosed(uint32 session_id) { 217 void WebContentDecryptionModuleImpl::OnSessionClosed(uint32 session_id) {
214 adapter_->RemoveSession(session_id); 218 adapter_->RemoveSession(session_id);
215 } 219 }
216 220
217 } // namespace content 221 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698