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

Side by Side Diff: content/common/resource_dispatcher.h

Issue 10825274: Clean-up inline members of nested classes (content/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | content/common/resource_dispatcher.cc » ('j') | 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 9
10 #include <deque> 10 #include <deque>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // delegate have a longer lifetime than the ResourceDispatcher. 65 // delegate have a longer lifetime than the ResourceDispatcher.
66 void set_delegate(ResourceDispatcherDelegate* delegate) { 66 void set_delegate(ResourceDispatcherDelegate* delegate) {
67 delegate_ = delegate; 67 delegate_ = delegate;
68 } 68 }
69 69
70 private: 70 private:
71 friend class ResourceDispatcherTest; 71 friend class ResourceDispatcherTest;
72 72
73 typedef std::deque<IPC::Message*> MessageQueue; 73 typedef std::deque<IPC::Message*> MessageQueue;
74 struct PendingRequestInfo { 74 struct PendingRequestInfo {
75 PendingRequestInfo() 75 PendingRequestInfo();
76 : peer(NULL),
77 resource_type(ResourceType::SUB_RESOURCE),
78 is_deferred(false) {
79 }
80 76
81 PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer, 77 PendingRequestInfo(webkit_glue::ResourceLoaderBridge::Peer* peer,
82 ResourceType::Type resource_type, 78 ResourceType::Type resource_type,
83 const GURL& request_url) 79 const GURL& request_url);
84 : peer(peer),
85 resource_type(resource_type),
86 is_deferred(false),
87 url(request_url),
88 request_start(base::TimeTicks::Now()) {
89 }
90 80
91 ~PendingRequestInfo() {} 81 ~PendingRequestInfo();
92 82
93 webkit_glue::ResourceLoaderBridge::Peer* peer; 83 webkit_glue::ResourceLoaderBridge::Peer* peer;
94 ResourceType::Type resource_type; 84 ResourceType::Type resource_type;
95 MessageQueue deferred_message_queue; 85 MessageQueue deferred_message_queue;
96 bool is_deferred; 86 bool is_deferred;
97 GURL url; 87 GURL url;
98 linked_ptr<IPC::Message> pending_redirect_message; 88 linked_ptr<IPC::Message> pending_redirect_message;
99 base::TimeTicks request_start; 89 base::TimeTicks request_start;
100 base::TimeTicks response_start; 90 base::TimeTicks response_start;
101 base::TimeTicks completion_time; 91 base::TimeTicks completion_time;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 166 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
177 167
178 ResourceDispatcherDelegate* delegate_; 168 ResourceDispatcherDelegate* delegate_;
179 169
180 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 170 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
181 }; 171 };
182 172
183 } // namespace content 173 } // namespace content
184 174
185 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 175 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698