summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 17:22:23 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 17:22:23 +0000
commitdd9b546041432d91245d5674fd6b4c6bb2f7ac0d (patch)
tree71fb76d1f335cb8adcc154265ec455cbbaf39b09 /chrome
parent7dc55f7fb05d1a7e0da911ada862235f51c37599 (diff)
downloadchromium_src-dd9b546041432d91245d5674fd6b4c6bb2f7ac0d.zip
chromium_src-dd9b546041432d91245d5674fd6b4c6bb2f7ac0d.tar.gz
chromium_src-dd9b546041432d91245d5674fd6b4c6bb2f7ac0d.tar.bz2
Coverity: Initialize read_buffer_size_ in the constructor.
CID=1422 BUG=none TEST=none Review URL: http://codereview.chromium.org/224021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/buffered_resource_handler.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/buffered_resource_handler.cc b/chrome/browser/renderer_host/buffered_resource_handler.cc
index 641f577..ad31e8d 100644
--- a/chrome/browser/renderer_host/buffered_resource_handler.cc
+++ b/chrome/browser/renderer_host/buffered_resource_handler.cc
@@ -4,20 +4,21 @@
#include "chrome/browser/renderer_host/buffered_resource_handler.h"
+#include <vector>
+
#include "base/histogram.h"
#include "base/logging.h"
#include "base/string_util.h"
-#include "net/base/mime_sniffer.h"
-#include "net/base/net_errors.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/renderer_host/download_throttling_resource_handler.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
#include "chrome/common/url_constants.h"
+#include "net/base/io_buffer.h"
#include "net/base/mime_sniffer.h"
#include "net/base/mime_util.h"
-#include "net/base/io_buffer.h"
+#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "webkit/glue/plugins/plugin_list.h"
@@ -51,6 +52,7 @@ BufferedResourceHandler::BufferedResourceHandler(ResourceHandler* handler,
: real_handler_(handler),
host_(host),
request_(request),
+ read_buffer_size_(0),
bytes_read_(0),
sniff_content_(false),
should_buffer_(false),