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

Unified Diff: media/tools/player_x11/data_source_logger.h

Issue 1094553002: Revert "Speculative revert by sheriff" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/test/pipeline_integration_test_base.cc ('k') | media/tools/player_x11/data_source_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_x11/data_source_logger.h
diff --git a/media/tools/player_x11/data_source_logger.h b/media/tools/player_x11/data_source_logger.h
deleted file mode 100644
index 13fdc6067ef2cf98456fdc0009877ebd7d0828b3..0000000000000000000000000000000000000000
--- a/media/tools/player_x11/data_source_logger.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef MEDIA_TOOLS_PLAYER_X11_DATA_SOURCE_LOGGER_H_
-#define MEDIA_TOOLS_PLAYER_X11_DATA_SOURCE_LOGGER_H_
-
-#include "media/base/data_source.h"
-
-// Logs all DataSource operations to VLOG(1) for debugging purposes.
-class DataSourceLogger : public media::DataSource {
- public:
- // Constructs a DataSourceLogger to log operations against another DataSource.
- //
- // |data_source| must be initialized in advance.
- //
- // |streaming| when set to true will override the implementation
- // IsStreaming() to always return true, otherwise it will delegate to
- // |data_source|.
- DataSourceLogger(scoped_ptr<DataSource> data_source,
- bool force_streaming);
- ~DataSourceLogger() override;
-
- // media::DataSource implementation.
- void Stop() override;
- void Read(int64 position,
- int size,
- uint8* data,
- const media::DataSource::ReadCB& read_cb) override;
- bool GetSize(int64* size_out) override;
- bool IsStreaming() override;
- void SetBitrate(int bitrate) override;
-
- private:
- scoped_ptr<media::DataSource> data_source_;
- bool streaming_;
-
- DISALLOW_COPY_AND_ASSIGN(DataSourceLogger);
-};
-
-#endif // MEDIA_TOOLS_PLAYER_X11_DATA_SOURCE_LOGGER_H_
« no previous file with comments | « media/test/pipeline_integration_test_base.cc ('k') | media/tools/player_x11/data_source_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698