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

Unified Diff: media/blink/buffered_data_source_host_impl.cc

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
Index: media/blink/buffered_data_source_host_impl.cc
diff --git a/content/renderer/media/buffered_data_source_host_impl.cc b/media/blink/buffered_data_source_host_impl.cc
similarity index 86%
rename from content/renderer/media/buffered_data_source_host_impl.cc
rename to media/blink/buffered_data_source_host_impl.cc
index 3ffee07481a2fce055ff7c41cbcdc79954315750..42f9822dab7d7642eaefb25c1b1cb8265430910e 100644
--- a/content/renderer/media/buffered_data_source_host_impl.cc
+++ b/media/blink/buffered_data_source_host_impl.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/renderer/media/buffered_data_source_host_impl.h"
+#include "media/blink/buffered_data_source_host_impl.h"
-namespace content {
+namespace media {
BufferedDataSourceHostImpl::BufferedDataSourceHostImpl()
: total_bytes_(0),
@@ -34,10 +34,10 @@ static base::TimeDelta TimeForByteOffset(
}
void BufferedDataSourceHostImpl::AddBufferedTimeRanges(
- media::Ranges<base::TimeDelta>* buffered_time_ranges,
+ Ranges<base::TimeDelta>* buffered_time_ranges,
base::TimeDelta media_duration) const {
- DCHECK(media_duration != media::kNoTimestamp());
- DCHECK(media_duration != media::kInfiniteDuration());
+ DCHECK(media_duration != kNoTimestamp());
+ DCHECK(media_duration != kInfiniteDuration());
if (total_bytes_ && buffered_byte_ranges_.size()) {
for (size_t i = 0; i < buffered_byte_ranges_.size(); ++i) {
int64 start = buffered_byte_ranges_.start(i);
@@ -55,4 +55,4 @@ bool BufferedDataSourceHostImpl::DidLoadingProgress() {
return ret;
}
-} // namespace content
+} // namespace media
« no previous file with comments | « media/blink/buffered_data_source_host_impl.h ('k') | media/blink/buffered_data_source_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698