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

Unified Diff: media/base/media_log.cc

Issue 7566054: Revert 95542 - Plumb media data from renderers up to MediaInternals in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/base/media_log.h ('k') | media/base/media_log_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_log.cc
===================================================================
--- media/base/media_log.cc (revision 95544)
+++ media/base/media_log.cc (working copy)
@@ -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
« no previous file with comments | « media/base/media_log.h ('k') | media/base/media_log_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698