diff options
author | scottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 01:00:39 +0000 |
---|---|---|
committer | scottfr@chromium.org <scottfr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 01:00:39 +0000 |
commit | e71d5327c21ced22e6d61af99ff8e889087ccf7e (patch) | |
tree | 2c81bb62f310610f33b1a4ad77585e5dbadaf136 /media/base/media_log.h | |
parent | 0cbc91fc0a683ab7b1e7408624c9328bb0541047 (diff) | |
download | chromium_src-e71d5327c21ced22e6d61af99ff8e889087ccf7e.zip chromium_src-e71d5327c21ced22e6d61af99ff8e889087ccf7e.tar.gz chromium_src-e71d5327c21ced22e6d61af99ff8e889087ccf7e.tar.bz2 |
Log FilterHost events in PipelineImpl to MediaLog.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7587007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_log.h')
-rw-r--r-- | media/base/media_log.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/media/base/media_log.h b/media/base/media_log.h index c9905e5..3a300e2d 100644 --- a/media/base/media_log.h +++ b/media/base/media_log.h @@ -9,6 +9,7 @@ #include "base/memory/ref_counted.h" #include "media/base/media_log_event.h" #include "media/base/pipeline_impl.h" +#include "media/base/pipeline_status.h" namespace media { @@ -17,6 +18,7 @@ class MediaLog : public base::RefCountedThreadSafe<MediaLog> { // Convert various enums to strings. static const char* EventTypeToString(MediaLogEvent::Type type); static const char* PipelineStateToString(PipelineImpl::State); + static const char* PipelineStatusToString(PipelineStatus); MediaLog(); @@ -27,9 +29,17 @@ class MediaLog : public base::RefCountedThreadSafe<MediaLog> { // Helper methods to create events and their parameters. MediaLogEvent* CreateEvent(MediaLogEvent::Type type); + MediaLogEvent* CreateBooleanEvent(MediaLogEvent::Type type, + const char* property, bool value); + MediaLogEvent* CreateIntegerEvent(MediaLogEvent::Type type, + const char* property, int64 value); + MediaLogEvent* CreateTimeEvent(MediaLogEvent::Type type, + const char* property, base::TimeDelta value); MediaLogEvent* CreateLoadEvent(const std::string& url); MediaLogEvent* CreateSeekEvent(float seconds); MediaLogEvent* CreatePipelineStateChangedEvent(PipelineImpl::State state); + MediaLogEvent* CreatePipelineErrorEvent(PipelineStatus error); + MediaLogEvent* CreateVideoSizeSetEvent(size_t width, size_t height); MediaLogEvent* CreateBufferedExtentsChangedEvent(size_t start, size_t current, size_t end); |