media-internals: Differentiate error, info, and debug log messages
commit6403f6c64482043ce1074ed8781a111dcd97ae3c
authorwolenetz <wolenetz@chromium.org>
Tue, 31 Mar 2015 22:05:27 +0000 (31 15:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 31 Mar 2015 22:06:49 +0000 (31 22:06 +0000)
treea84bf78ef1112b0ca84d8e2ace8613e57e842ebe
parent292673a58ddf1fd9d0f83badf7b448575731eca4
media-internals: Differentiate error, info, and debug log messages

This change refactors previous MediaLog::CreateMediaSourceErrorEvent()
to support general media-internals log messages that can be any one of
the new MediaLog::MediaLogLevel severities (just error, info, debug for
now).

Includes:
* Updated MEDIA_LOG and LIMITED_MEDIA_LOG macros are now additionally
  parameterized by ERROR, INFO, or DEBUG.
* Coalesced test LogCB implementations across
  source_buffer_stream_unittest, frame_processor_unittest, and
  chunk_demuxer_unittests into just one implementation in
  media/base/test_helpers.
* Differentiated the existing *MEDIA_LOG calls into the new severity
  buckets.

TEST=no regressions observed locally on linux (layout or
media_unittests), chrome://media-internals shows error, info, and debug
messages.

BUG=471902,260005

Review URL: https://codereview.chromium.org/1041353002

Cr-Commit-Position: refs/heads/master@{#323124}
32 files changed:
content/renderer/media/android/media_source_delegate.cc
media/base/media_log.cc
media/base/media_log.h
media/base/media_log_event.h
media/base/test_helpers.cc
media/base/test_helpers.h
media/blink/webmediaplayer_impl.cc
media/filters/chunk_demuxer.cc
media/filters/chunk_demuxer.h
media/filters/chunk_demuxer_unittest.cc
media/filters/ffmpeg_audio_decoder.cc
media/filters/frame_processor_unittest.cc
media/filters/source_buffer_stream.cc
media/filters/source_buffer_stream.h
media/filters/source_buffer_stream_unittest.cc
media/filters/stream_parser_factory.cc
media/formats/mp4/aac.cc
media/formats/mp4/box_definitions.cc
media/formats/mp4/box_reader.cc
media/formats/mp4/mp4_stream_parser.cc
media/formats/mp4/track_run_iterator.cc
media/formats/mpeg/adts_stream_parser.cc
media/formats/mpeg/mpeg1_audio_stream_parser.cc
media/formats/mpeg/mpeg_audio_stream_parser_base.cc
media/formats/webm/webm_audio_client.cc
media/formats/webm/webm_cluster_parser.cc
media/formats/webm/webm_content_encodings_client.cc
media/formats/webm/webm_stream_parser.cc
media/formats/webm/webm_tracks_parser.cc
media/formats/webm/webm_video_client.cc
media/mojo/services/mojo_renderer_service.cc
media/renderers/default_renderer_factory.cc