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

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

Issue 1379543003: Revert of Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « content/child/request_info.cc ('k') | 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 21 matching lines...) Expand all
32 } 32 }
33 33
34 namespace net { 34 namespace net {
35 struct RedirectInfo; 35 struct RedirectInfo;
36 } 36 }
37 37
38 namespace content { 38 namespace content {
39 class RequestPeer; 39 class RequestPeer;
40 class ResourceDispatcherDelegate; 40 class ResourceDispatcherDelegate;
41 class ResourceRequestBody; 41 class ResourceRequestBody;
42 class ResourceSchedulingFilter;
43 class ThreadedDataProvider; 42 class ThreadedDataProvider;
44 struct ResourceResponseInfo; 43 struct ResourceResponseInfo;
45 struct RequestInfo; 44 struct RequestInfo;
46 struct ResourceResponseHead; 45 struct ResourceResponseHead;
47 class SharedMemoryReceivedDataFactory; 46 class SharedMemoryReceivedDataFactory;
48 struct SiteIsolationResponseMetaData; 47 struct SiteIsolationResponseMetaData;
49 struct SyncLoadResponse; 48 struct SyncLoadResponse;
50 49
51 // This class serves as a communication interface to the ResourceDispatcherHost 50 // This class serves as a communication interface to the ResourceDispatcherHost
52 // in the browser process. It can be used from any child process. 51 // in the browser process. It can be used from any child process.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Remembers IO thread timestamp for next resource message. 122 // Remembers IO thread timestamp for next resource message.
124 void set_io_timestamp(base::TimeTicks io_timestamp) { 123 void set_io_timestamp(base::TimeTicks io_timestamp) {
125 io_timestamp_ = io_timestamp; 124 io_timestamp_ = io_timestamp;
126 } 125 }
127 126
128 void SetMainThreadTaskRunner( 127 void SetMainThreadTaskRunner(
129 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) { 128 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
130 main_thread_task_runner_ = main_thread_task_runner; 129 main_thread_task_runner_ = main_thread_task_runner;
131 } 130 }
132 131
133 void SetResourceSchedulingFilter(
134 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter);
135
136 private: 132 private:
137 friend class ResourceDispatcherTest; 133 friend class ResourceDispatcherTest;
138 134
139 typedef std::deque<IPC::Message*> MessageQueue; 135 typedef std::deque<IPC::Message*> MessageQueue;
140 struct PendingRequestInfo { 136 struct PendingRequestInfo {
141 PendingRequestInfo(); 137 PendingRequestInfo();
142 138
143 PendingRequestInfo(RequestPeer* peer, 139 PendingRequestInfo(RequestPeer* peer,
144 ResourceType resource_type, 140 ResourceType resource_type,
145 int origin_pid, 141 int origin_pid,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 242
247 // All pending requests issued to the host 243 // All pending requests issued to the host
248 PendingRequestList pending_requests_; 244 PendingRequestList pending_requests_;
249 245
250 ResourceDispatcherDelegate* delegate_; 246 ResourceDispatcherDelegate* delegate_;
251 247
252 // IO thread timestamp for ongoing IPC message. 248 // IO thread timestamp for ongoing IPC message.
253 base::TimeTicks io_timestamp_; 249 base::TimeTicks io_timestamp_;
254 250
255 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 251 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
256 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
257 252
258 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 253 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
259 254
260 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 255 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
261 }; 256 };
262 257
263 } // namespace content 258 } // namespace content
264 259
265 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 260 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/request_info.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698