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

Unified Diff: media/mojo/services/mojo_decryptor.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_cdm_service.cc ('k') | media/mojo/services/mojo_demuxer_stream_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_decryptor.cc
diff --git a/media/mojo/services/mojo_decryptor.cc b/media/mojo/services/mojo_decryptor.cc
index 99d9acfaf071695aef61347d58e0ad382ed9b425..7ce3888af14e2416873cb66f74b98532eebc2aa7 100644
--- a/media/mojo/services/mojo_decryptor.cc
+++ b/media/mojo/services/mojo_decryptor.cc
@@ -116,9 +116,9 @@ void MojoDecryptor::OnKeyAdded() {
void MojoDecryptor::OnBufferDecrypted(const DecryptCB& decrypt_cb,
interfaces::Decryptor::Status status,
interfaces::DecoderBufferPtr buffer) {
- DVLOG_IF(1, status != interfaces::Decryptor::STATUS_SUCCESS)
+ DVLOG_IF(1, status != interfaces::Decryptor::Status::SUCCESS)
<< __FUNCTION__ << "(" << status << ")";
- DVLOG_IF(3, status == interfaces::Decryptor::STATUS_SUCCESS) << __FUNCTION__;
+ DVLOG_IF(3, status == interfaces::Decryptor::Status::SUCCESS) << __FUNCTION__;
if (buffer.is_null()) {
decrypt_cb.Run(static_cast<Decryptor::Status>(status), nullptr);
@@ -133,9 +133,9 @@ void MojoDecryptor::OnAudioDecoded(
const AudioDecodeCB& audio_decode_cb,
interfaces::Decryptor::Status status,
mojo::Array<interfaces::AudioBufferPtr> audio_buffers) {
- DVLOG_IF(1, status != interfaces::Decryptor::STATUS_SUCCESS)
+ DVLOG_IF(1, status != interfaces::Decryptor::Status::SUCCESS)
<< __FUNCTION__ << "(" << status << ")";
- DVLOG_IF(3, status == interfaces::Decryptor::STATUS_SUCCESS) << __FUNCTION__;
+ DVLOG_IF(3, status == interfaces::Decryptor::Status::SUCCESS) << __FUNCTION__;
Decryptor::AudioFrames audio_frames;
for (size_t i = 0; i < audio_buffers.size(); ++i)
@@ -147,9 +147,9 @@ void MojoDecryptor::OnAudioDecoded(
void MojoDecryptor::OnVideoDecoded(const VideoDecodeCB& video_decode_cb,
interfaces::Decryptor::Status status,
interfaces::VideoFramePtr video_frame) {
- DVLOG_IF(1, status != interfaces::Decryptor::STATUS_SUCCESS)
+ DVLOG_IF(1, status != interfaces::Decryptor::Status::SUCCESS)
<< __FUNCTION__ << "(" << status << ")";
- DVLOG_IF(3, status == interfaces::Decryptor::STATUS_SUCCESS) << __FUNCTION__;
+ DVLOG_IF(3, status == interfaces::Decryptor::Status::SUCCESS) << __FUNCTION__;
if (video_frame.is_null()) {
video_decode_cb.Run(static_cast<Decryptor::Status>(status), nullptr);
return;
« no previous file with comments | « media/mojo/services/mojo_cdm_service.cc ('k') | media/mojo/services/mojo_demuxer_stream_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698