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

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

Issue 567873003: Refactoring the weak_ptr_factory order in src/content/child (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated patch as per comments Created 6 years, 3 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
« no previous file with comments | « no previous file | content/child/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_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Iterate through a message queue and clean up the messages by calling 203 // Iterate through a message queue and clean up the messages by calling
204 // ReleaseResourcesInDataMessage and removing them from the queue. Intended 204 // ReleaseResourcesInDataMessage and removing them from the queue. Intended
205 // for use on deferred message queues that are no longer needed. 205 // for use on deferred message queues that are no longer needed.
206 static void ReleaseResourcesInMessageQueue(MessageQueue* queue); 206 static void ReleaseResourcesInMessageQueue(MessageQueue* queue);
207 207
208 IPC::Sender* message_sender_; 208 IPC::Sender* message_sender_;
209 209
210 // All pending requests issued to the host 210 // All pending requests issued to the host
211 PendingRequestList pending_requests_; 211 PendingRequestList pending_requests_;
212 212
213 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
214
215 ResourceDispatcherDelegate* delegate_; 213 ResourceDispatcherDelegate* delegate_;
216 214
217 // IO thread timestamp for ongoing IPC message. 215 // IO thread timestamp for ongoing IPC message.
218 base::TimeTicks io_timestamp_; 216 base::TimeTicks io_timestamp_;
219 217
218 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
219
220 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 220 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
221 }; 221 };
222 222
223 } // namespace content 223 } // namespace content
224 224
225 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 225 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698