summaryrefslogtreecommitdiffstats
path: root/content/common/resource_dispatcher.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 15:18:10 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 15:18:10 +0000
commit0361a9fac5b2e1ae9d9d965011b367b1e3f0ef31 (patch)
tree3a0748b934e4497093f1a601916c8a11188fb4e0 /content/common/resource_dispatcher.h
parent285686a92133036602a65d1a216310a019e45d85 (diff)
downloadchromium_src-0361a9fac5b2e1ae9d9d965011b367b1e3f0ef31.zip
chromium_src-0361a9fac5b2e1ae9d9d965011b367b1e3f0ef31.tar.gz
chromium_src-0361a9fac5b2e1ae9d9d965011b367b1e3f0ef31.tar.bz2
Coverity: Initialize member variables.
CID_COUNT=4 CID=104409,104410,104411,104412 BUG=none TEST=none R=groby TBR=sky,hans,darin Review URL: https://chromiumcodereview.appspot.com/10703108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/resource_dispatcher.h')
-rw-r--r--content/common/resource_dispatcher.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h
index ba12524..4cf3662 100644
--- a/content/common/resource_dispatcher.h
+++ b/content/common/resource_dispatcher.h
@@ -73,7 +73,12 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
typedef std::deque<IPC::Message*> MessageQueue;
struct PendingRequestInfo {
- PendingRequestInfo() { }
+ PendingRequestInfo()
+ : peer(NULL),
+ resource_type(ResourceType::SUB_RESOURCE),
+ is_deferred(false) {
+ }
+
PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer,
ResourceType::Type resource_type,
const GURL& request_url)
@@ -83,7 +88,9 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
url(request_url),
request_start(base::TimeTicks::Now()) {
}
- ~PendingRequestInfo() { }
+
+ ~PendingRequestInfo() {}
+
webkit_glue::ResourceLoaderBridge::Peer* peer;
ResourceType::Type resource_type;
MessageQueue deferred_message_queue;