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

Unified Diff: content/common/resource_dispatcher.h

Issue 10703108: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/device_orientation/orientation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_dispatcher.h
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h
index ba125240ade019e3068a169ba6a2fa7b8c641f11..4cf3662f908a1da48de518aca327d17849ee2d90 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;
« no previous file with comments | « content/browser/device_orientation/orientation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698