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

Side by Side Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.cc

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 "media/cdm/ppapi/external_clear_key/clear_key_cdm.h" 5 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <sstream> 9 #include <sstream>
10 #include <string> 10 #include <string>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 case media::MediaKeys::OUTPUT_ERROR: 149 case media::MediaKeys::OUTPUT_ERROR:
150 return cdm::kOutputError; 150 return cdm::kOutputError;
151 } 151 }
152 NOTIMPLEMENTED(); 152 NOTIMPLEMENTED();
153 return cdm::kUnknownError; 153 return cdm::kUnknownError;
154 } 154 }
155 155
156 static media::MediaKeys::SessionType ConvertSessionType( 156 static media::MediaKeys::SessionType ConvertSessionType(
157 cdm::SessionType session_type) { 157 cdm::SessionType session_type) {
158 switch (session_type) { 158 switch (session_type) {
159 case cdm::kPersistent: 159 case cdm::kPersistentLicense:
160 case cdm::kPersistentKeyRelease:
ddorwin 2014/12/17 01:01:15 TODO. It might be better to have a separate retur
jrummell 2014/12/17 19:17:19 Done.
160 return media::MediaKeys::PERSISTENT_SESSION; 161 return media::MediaKeys::PERSISTENT_SESSION;
161 case cdm::kTemporary: 162 case cdm::kTemporary:
162 return media::MediaKeys::TEMPORARY_SESSION; 163 return media::MediaKeys::TEMPORARY_SESSION;
163 } 164 }
164 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
165 return media::MediaKeys::TEMPORARY_SESSION; 166 return media::MediaKeys::TEMPORARY_SESSION;
166 } 167 }
167 168
168 template<typename Type> 169 template<typename Type>
169 class ScopedResetter { 170 class ScopedResetter {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 host_->OnSessionMessage(last_session_id_.data(), 859 host_->OnSessionMessage(last_session_id_.data(),
859 last_session_id_.length(), 860 last_session_id_.length(),
860 message.data(), 861 message.data(),
861 message.length(), 862 message.length(),
862 NULL, 863 NULL,
863 0); 864 0);
864 file_io_test_runner_.reset(); 865 file_io_test_runner_.reset();
865 } 866 }
866 867
867 } // namespace media 868 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698