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

Side by Side Diff: chrome/browser/dom_ui/chrome_url_data_manager.cc

Issue 218011: Coverity: Initialize pending_buf_size_ in the constructor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/dom_ui/chrome_url_data_manager.h" 5 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 if (NetInternalsURLFormat::IsSupportedURL(request->url())) { 337 if (NetInternalsURLFormat::IsSupportedURL(request->url())) {
338 static NetInternalsURLFormat url_format; 338 static NetInternalsURLFormat url_format;
339 return new URLRequestViewNetInternalsJob(request, &url_format); 339 return new URLRequestViewNetInternalsJob(request, &url_format);
340 } 340 }
341 341
342 // Fall back to using a custom handler 342 // Fall back to using a custom handler
343 return new URLRequestChromeJob(request); 343 return new URLRequestChromeJob(request);
344 } 344 }
345 345
346 URLRequestChromeJob::URLRequestChromeJob(URLRequest* request) 346 URLRequestChromeJob::URLRequestChromeJob(URLRequest* request)
347 : URLRequestJob(request), data_offset_(0) {} 347 : URLRequestJob(request),
348 data_offset_(0),
349 pending_buf_size_(0) {
350 }
348 351
349 URLRequestChromeJob::~URLRequestChromeJob() { 352 URLRequestChromeJob::~URLRequestChromeJob() {
350 CHECK(!chrome_url_data_manager.HasPendingJob(this)); 353 CHECK(!chrome_url_data_manager.HasPendingJob(this));
351 } 354 }
352 355
353 void URLRequestChromeJob::Start() { 356 void URLRequestChromeJob::Start() {
354 // Start reading asynchronously so that all error reporting and data 357 // Start reading asynchronously so that all error reporting and data
355 // callbacks happen as they would for network requests. 358 // callbacks happen as they would for network requests.
356 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 359 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
357 this, &URLRequestChromeJob::StartAsync)); 360 this, &URLRequestChromeJob::StartAsync));
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 net::ERR_INVALID_URL)); 428 net::ERR_INVALID_URL));
426 } 429 }
427 } 430 }
428 431
429 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request, 432 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request,
430 const FilePath& path) 433 const FilePath& path)
431 : URLRequestFileJob(request, path) { 434 : URLRequestFileJob(request, path) {
432 } 435 }
433 436
434 URLRequestChromeFileJob::~URLRequestChromeFileJob() { } 437 URLRequestChromeFileJob::~URLRequestChromeFileJob() { }
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