summaryrefslogtreecommitdiffstats
path: root/media/base/media_log.cc
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 00:50:34 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 00:50:34 +0000
commitdf4a64075f123113902a97a03cd00a8c9ba05aea (patch)
treeb0e1b64e0f0afc470c9ebabf8eb98d78bbd3672f /media/base/media_log.cc
parentdabaf655b51cd1ffb254f8abf79d5551f8dbb178 (diff)
downloadchromium_src-df4a64075f123113902a97a03cd00a8c9ba05aea.zip
chromium_src-df4a64075f123113902a97a03cd00a8c9ba05aea.tar.gz
chromium_src-df4a64075f123113902a97a03cd00a8c9ba05aea.tar.bz2
Revert 95542 - Plumb media data from renderers up to MediaInternals in the browser process.
BUG=none TEST=manually Review URL: http://codereview.chromium.org/7480032 TBR=scottfr@chromium.org Review URL: http://codereview.chromium.org/7566054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_log.cc')
-rw-r--r--media/base/media_log.cc60
1 files changed, 0 insertions, 60 deletions
diff --git a/media/base/media_log.cc b/media/base/media_log.cc
deleted file mode 100644
index 6bcbcd71..0000000
--- a/media/base/media_log.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/base/media_log.h"
-
-#include "base/atomic_sequence_num.h"
-#include "base/logging.h"
-
-namespace media {
-
-// A count of all MediaLogs created on this render process.
-// Used to generate unique ids.
-static base::AtomicSequenceNumber media_log_count(base::LINKER_INITIALIZED);
-
-const char* MediaLog::EventTypeToString(MediaLogEvent::Type type) {
- switch (type) {
- case MediaLogEvent::CREATING:
- return "CREATING";
- case MediaLogEvent::DESTROYING:
- return "DESTROYING";
- case MediaLogEvent::LOAD:
- return "LOAD";
- case MediaLogEvent::PLAY:
- return "PLAY";
- case MediaLogEvent::PAUSE:
- return "PAUSE";
- }
- NOTREACHED();
- return NULL;
-}
-
-MediaLog::MediaLog() {
- id_ = media_log_count.GetNext();
-}
-
-MediaLog::~MediaLog() {}
-
-void MediaLog::Load(const std::string& url) {
- MediaLogEvent* event = CreateEvent(MediaLogEvent::LOAD);
- event->params.SetString("url", url);
- AddEvent(event);
-}
-
-void MediaLog::AddEventOfType(MediaLogEvent::Type type) {
- MediaLogEvent* event = CreateEvent(type);
- AddEvent(event);
-}
-
-MediaLogEvent* MediaLog::CreateEvent(MediaLogEvent::Type type) {
- MediaLogEvent* event = new MediaLogEvent;
- event->id = id_;
- event->type = type;
- event->time = base::Time::Now();
- return event;
-}
-
-void MediaLog::AddEvent(MediaLogEvent* event) {}
-
-} //namespace media