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

Side by Side Diff: webkit/glue/media/buffered_data_source.cc

Issue 258030: Coverity: initialize read_attempts_ in BufferedDataSource constructor. (Closed)
Patch Set: Created 11 years, 2 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/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "base/stl_util-inl.h" 8 #include "base/stl_util-inl.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/common/extensions/url_pattern.h" 10 #include "chrome/common/extensions/url_pattern.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory) 462 webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory)
463 : total_bytes_(kPositionNotSpecified), 463 : total_bytes_(kPositionNotSpecified),
464 streaming_(false), 464 streaming_(false),
465 bridge_factory_(bridge_factory), 465 bridge_factory_(bridge_factory),
466 loader_(NULL), 466 loader_(NULL),
467 initialize_callback_(NULL), 467 initialize_callback_(NULL),
468 read_callback_(NULL), 468 read_callback_(NULL),
469 read_position_(0), 469 read_position_(0),
470 read_size_(0), 470 read_size_(0),
471 read_buffer_(NULL), 471 read_buffer_(NULL),
472 read_attempts_(0),
472 intermediate_read_buffer_(new uint8[kInitialReadBufferSize]), 473 intermediate_read_buffer_(new uint8[kInitialReadBufferSize]),
473 intermediate_read_buffer_size_(kInitialReadBufferSize), 474 intermediate_read_buffer_size_(kInitialReadBufferSize),
474 render_loop_(render_loop), 475 render_loop_(render_loop),
475 stopped_(false), 476 stopped_(false),
476 stop_task_finished_(false) { 477 stop_task_finished_(false) {
477 } 478 }
478 479
479 BufferedDataSource::~BufferedDataSource() { 480 BufferedDataSource::~BufferedDataSource() {
480 } 481 }
481 482
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 render_loop_->PostTask(FROM_HERE, 869 render_loop_->PostTask(FROM_HERE,
869 NewRunnableMethod(this, &BufferedDataSource::SwapLoaderTask, 870 NewRunnableMethod(this, &BufferedDataSource::SwapLoaderTask,
870 CreateLoader(read_position_, -1))); 871 CreateLoader(read_position_, -1)));
871 } else { 872 } else {
872 loader_->Stop(); 873 loader_->Stop();
873 DoneRead(error); 874 DoneRead(error);
874 } 875 }
875 } 876 }
876 877
877 } // namespace webkit_glue 878 } // namespace webkit_glue
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