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

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

Issue 1103813002: Make WebURLLoader capable of retaining received buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/npapi/plugin_url_fetcher.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 25 matching lines...) Expand all
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 ThreadedDataProvider; 42 class ThreadedDataProvider;
43 struct ResourceResponseInfo; 43 struct ResourceResponseInfo;
44 struct RequestInfo; 44 struct RequestInfo;
45 struct ResourceResponseHead; 45 struct ResourceResponseHead;
46 class SharedMemoryReceivedDataFactory;
46 struct SiteIsolationResponseMetaData; 47 struct SiteIsolationResponseMetaData;
47 struct SyncLoadResponse; 48 struct SyncLoadResponse;
48 49
49 // This class serves as a communication interface to the ResourceDispatcherHost 50 // This class serves as a communication interface to the ResourceDispatcherHost
50 // 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.
51 // Virtual methods are for tests. 52 // Virtual methods are for tests.
52 class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener { 53 class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
53 public: 54 public:
54 ResourceDispatcher( 55 ResourceDispatcher(
55 IPC::Sender* sender, 56 IPC::Sender* sender,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // The security origin of the frame that initiates this request. 159 // The security origin of the frame that initiates this request.
159 GURL frame_origin; 160 GURL frame_origin;
160 // The url of the latest response even in case of redirection. 161 // The url of the latest response even in case of redirection.
161 GURL response_url; 162 GURL response_url;
162 bool download_to_file; 163 bool download_to_file;
163 linked_ptr<IPC::Message> pending_redirect_message; 164 linked_ptr<IPC::Message> pending_redirect_message;
164 base::TimeTicks request_start; 165 base::TimeTicks request_start;
165 base::TimeTicks response_start; 166 base::TimeTicks response_start;
166 base::TimeTicks completion_time; 167 base::TimeTicks completion_time;
167 linked_ptr<base::SharedMemory> buffer; 168 linked_ptr<base::SharedMemory> buffer;
169 scoped_refptr<SharedMemoryReceivedDataFactory> received_data_factory;
168 linked_ptr<SiteIsolationResponseMetaData> site_isolation_metadata; 170 linked_ptr<SiteIsolationResponseMetaData> site_isolation_metadata;
169 bool blocked_response; 171 bool blocked_response;
170 int buffer_size; 172 int buffer_size;
171 }; 173 };
172 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList; 174 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList;
173 175
174 // Helper to lookup the info based on the request_id. 176 // Helper to lookup the info based on the request_id.
175 // May return NULL if the request as been canceled from the client side. 177 // May return NULL if the request as been canceled from the client side.
176 PendingRequestInfo* GetPendingRequestInfo(int request_id); 178 PendingRequestInfo* GetPendingRequestInfo(int request_id);
177 179
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 252 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
251 253
252 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 254 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
253 255
254 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 256 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
255 }; 257 };
256 258
257 } // namespace content 259 } // namespace content
258 260
259 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 261 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698