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

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

Issue 179123009: Encrypted Media: Use uint32 for systemCode in SessionError. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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 // 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/webcontentdecryptionmodulesession_impl.h" 5 #include "content/renderer/media/webcontentdecryptionmodulesession_impl.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "content/renderer/media/cdm_session_adapter.h" 10 #include "content/renderer/media/cdm_session_adapter.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void WebContentDecryptionModuleSessionImpl::OnSessionReady() { 79 void WebContentDecryptionModuleSessionImpl::OnSessionReady() {
80 client_->ready(); 80 client_->ready();
81 } 81 }
82 82
83 void WebContentDecryptionModuleSessionImpl::OnSessionClosed() { 83 void WebContentDecryptionModuleSessionImpl::OnSessionClosed() {
84 client_->close(); 84 client_->close();
85 } 85 }
86 86
87 void WebContentDecryptionModuleSessionImpl::OnSessionError( 87 void WebContentDecryptionModuleSessionImpl::OnSessionError(
88 media::MediaKeys::KeyError error_code, 88 media::MediaKeys::KeyError error_code,
89 int system_code) { 89 uint32 system_code) {
90 client_->error(static_cast<Client::MediaKeyErrorCode>(error_code), 90 client_->error(static_cast<Client::MediaKeyErrorCode>(error_code),
91 system_code); 91 system_code);
92 } 92 }
93 93
94 } // namespace content 94 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webcontentdecryptionmodulesession_impl.h ('k') | content/renderer/media/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698