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

Side by Side Diff: chrome/renderer/media/data_source_impl.cc

Issue 28058: Fix the build due to r10237 (Closed)
Patch Set: Created 11 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/renderer/media/data_source_impl.h" 6 #include "chrome/renderer/media/data_source_impl.h"
7 #include "chrome/renderer/render_view.h" 7 #include "chrome/renderer/render_view.h"
8 #include "chrome/renderer/webmediaplayer_delegate_impl.h" 8 #include "chrome/renderer/webmediaplayer_delegate_impl.h"
9 #include "media/base/filter_host.h" 9 #include "media/base/filter_host.h"
10 #include "media/base/pipeline.h" 10 #include "media/base/pipeline.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 12
13 DataSourceImpl::DataSourceImpl(WebMediaPlayerDelegateImpl* delegate) 13 DataSourceImpl::DataSourceImpl(WebMediaPlayerDelegateImpl* delegate)
14 : delegate_(delegate), 14 : delegate_(delegate),
15 stopped_(false), 15 stopped_(false),
16 download_event_(false, false), 16 download_event_(false, false),
17 downloaded_bytes_(0), 17 downloaded_bytes_(0),
18 total_bytes_(0), 18 total_bytes_(0),
19 total_bytes_known_(false), 19 total_bytes_known_(false),
20 read_event_(false, false), 20 read_event_(false, false),
21 read_callback_(this, &DataSourceImpl::OnDidFileStreamRead), 21 ALLOW_THIS_IN_INITIALIZER_LIST(
22 read_callback_(this, &DataSourceImpl::OnDidFileStreamRead)),
22 stream_(NULL), 23 stream_(NULL),
23 last_read_size_(0), 24 last_read_size_(0),
24 position_(0), 25 position_(0),
25 io_loop_(delegate->view()->GetMessageLoopForIO()), 26 io_loop_(delegate->view()->GetMessageLoopForIO()),
26 close_event_(false, false), 27 close_event_(false, false),
27 seek_event_(false, false) { 28 seek_event_(false, false) {
28 } 29 }
29 30
30 DataSourceImpl::~DataSourceImpl() { 31 DataSourceImpl::~DataSourceImpl() {
31 } 32 }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 downloaded_bytes_ += bytes; 218 downloaded_bytes_ += bytes;
218 if (!total_bytes_known_) 219 if (!total_bytes_known_)
219 total_bytes_ += bytes; 220 total_bytes_ += bytes;
220 } 221 }
221 download_event_.Signal(); 222 download_event_.Signal();
222 } 223 }
223 224
224 const media::MediaFormat* DataSourceImpl::GetMediaFormat() { 225 const media::MediaFormat* DataSourceImpl::GetMediaFormat() {
225 return &media_format_; 226 return &media_format_;
226 } 227 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698