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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/device_orientation/orientation.h ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_
8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // delegate have a longer lifetime than the ResourceDispatcher. 66 // delegate have a longer lifetime than the ResourceDispatcher.
67 void set_delegate(ResourceDispatcherDelegate* delegate) { 67 void set_delegate(ResourceDispatcherDelegate* delegate) {
68 delegate_ = delegate; 68 delegate_ = delegate;
69 } 69 }
70 70
71 private: 71 private:
72 friend class ResourceDispatcherTest; 72 friend class ResourceDispatcherTest;
73 73
74 typedef std::deque<IPC::Message*> MessageQueue; 74 typedef std::deque<IPC::Message*> MessageQueue;
75 struct PendingRequestInfo { 75 struct PendingRequestInfo {
76 PendingRequestInfo() { } 76 PendingRequestInfo()
77 : peer(NULL),
78 resource_type(ResourceType::SUB_RESOURCE),
79 is_deferred(false) {
80 }
81
77 PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer, 82 PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer,
78 ResourceType::Type resource_type, 83 ResourceType::Type resource_type,
79 const GURL& request_url) 84 const GURL& request_url)
80 : peer(peer), 85 : peer(peer),
81 resource_type(resource_type), 86 resource_type(resource_type),
82 is_deferred(false), 87 is_deferred(false),
83 url(request_url), 88 url(request_url),
84 request_start(base::TimeTicks::Now()) { 89 request_start(base::TimeTicks::Now()) {
85 } 90 }
86 ~PendingRequestInfo() { } 91
92 ~PendingRequestInfo() {}
93
87 webkit_glue::ResourceLoaderBridge::Peer* peer; 94 webkit_glue::ResourceLoaderBridge::Peer* peer;
88 ResourceType::Type resource_type; 95 ResourceType::Type resource_type;
89 MessageQueue deferred_message_queue; 96 MessageQueue deferred_message_queue;
90 bool is_deferred; 97 bool is_deferred;
91 GURL url; 98 GURL url;
92 linked_ptr<IPC::Message> pending_redirect_message; 99 linked_ptr<IPC::Message> pending_redirect_message;
93 base::TimeTicks request_start; 100 base::TimeTicks request_start;
94 base::TimeTicks response_start; 101 base::TimeTicks response_start;
95 base::TimeTicks completion_time; 102 base::TimeTicks completion_time;
96 }; 103 };
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 177 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
171 178
172 ResourceDispatcherDelegate* delegate_; 179 ResourceDispatcherDelegate* delegate_;
173 180
174 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 181 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
175 }; 182 };
176 183
177 } // namespace content 184 } // namespace content
178 185
179 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 186 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW
« 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