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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 12243002: Pass WebKit priority changes and parsing messages up to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 const ResourceHostMsg_Request& request_data, 314 const ResourceHostMsg_Request& request_data,
315 IPC::Message* sync_result, // only valid for sync 315 IPC::Message* sync_result, // only valid for sync
316 int route_id); // only valid for async 316 int route_id); // only valid for async
317 void OnDataReceivedACK(int request_id); 317 void OnDataReceivedACK(int request_id);
318 void OnDataDownloadedACK(int request_id); 318 void OnDataDownloadedACK(int request_id);
319 void OnUploadProgressACK(int request_id); 319 void OnUploadProgressACK(int request_id);
320 void OnCancelRequest(int request_id); 320 void OnCancelRequest(int request_id);
321 void OnFollowRedirect(int request_id, 321 void OnFollowRedirect(int request_id,
322 bool has_new_first_party_for_cookies, 322 bool has_new_first_party_for_cookies,
323 const GURL& new_first_party_for_cookies); 323 const GURL& new_first_party_for_cookies);
324 void OnDidChangePriority(int request_id,
325 WebKit::WebURLRequest::Priority priority);
324 void OnReleaseDownloadedFile(int request_id); 326 void OnReleaseDownloadedFile(int request_id);
325 327
326 // Creates ResourceRequestInfoImpl for a download or page save. 328 // Creates ResourceRequestInfoImpl for a download or page save.
327 // |download| should be true if the request is a file download. 329 // |download| should be true if the request is a file download.
328 ResourceRequestInfoImpl* CreateRequestInfo( 330 ResourceRequestInfoImpl* CreateRequestInfo(
329 int child_id, 331 int child_id,
330 int route_id, 332 int route_id,
331 bool download, 333 bool download,
332 ResourceContext* context); 334 ResourceContext* context);
333 335
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // http://crbug.com/90971 - Assists in tracking down use-after-frees on 420 // http://crbug.com/90971 - Assists in tracking down use-after-frees on
419 // shutdown. 421 // shutdown.
420 std::set<const ResourceContext*> active_resource_contexts_; 422 std::set<const ResourceContext*> active_resource_contexts_;
421 423
422 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 424 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
423 }; 425 };
424 426
425 } // namespace content 427 } // namespace content
426 428
427 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 429 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698