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

Side by Side Diff: media/filters/file_data_source.cc

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits> 5 #include <limits>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "media/base/filter_host.h"
11 #include "media/base/filters.h"
12 #include "media/base/pipeline.h" 10 #include "media/base/pipeline.h"
13 #include "media/filters/file_data_source.h" 11 #include "media/filters/file_data_source.h"
14 12
15 namespace media { 13 namespace media {
16 14
17 FileDataSource::FileDataSource() 15 FileDataSource::FileDataSource()
18 : file_(NULL), 16 : file_(NULL),
19 file_size_(0), 17 file_size_(0),
20 disable_file_size_(false) { 18 disable_file_size_(false) {
21 } 19 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 106 }
109 107
110 void FileDataSource::UpdateHostBytes() { 108 void FileDataSource::UpdateHostBytes() {
111 if (host() && file_) { 109 if (host() && file_) {
112 host()->SetTotalBytes(file_size_); 110 host()->SetTotalBytes(file_size_);
113 host()->AddBufferedByteRange(0, file_size_); 111 host()->AddBufferedByteRange(0, file_size_);
114 } 112 }
115 } 113 }
116 114
117 } // namespace media 115 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698