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

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

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Puts the resource dispatcher host in an inactive state (unable to begin 96 // Puts the resource dispatcher host in an inactive state (unable to begin
97 // new requests). Cancels all pending requests. 97 // new requests). Cancels all pending requests.
98 void Shutdown(); 98 void Shutdown();
99 99
100 // Notify the ResourceDispatcherHostImpl of a new resource context. 100 // Notify the ResourceDispatcherHostImpl of a new resource context.
101 void AddResourceContext(ResourceContext* context); 101 void AddResourceContext(ResourceContext* context);
102 102
103 // Notify the ResourceDispatcherHostImpl of a resource context destruction. 103 // Notify the ResourceDispatcherHostImpl of a resource context destruction.
104 void RemoveResourceContext(ResourceContext* context); 104 void RemoveResourceContext(ResourceContext* context);
105 105
106 // Resumes a request that deferred at response start.
107 void ResumeResponseDeferredAtStart(const GlobalRequestID& id);
108
106 // Force cancels any pending requests for the given |context|. This is 109 // Force cancels any pending requests for the given |context|. This is
107 // necessary to ensure that before |context| goes away, all requests 110 // necessary to ensure that before |context| goes away, all requests
108 // for it are dead. 111 // for it are dead.
109 void CancelRequestsForContext(ResourceContext* context); 112 void CancelRequestsForContext(ResourceContext* context);
110 113
111 // Returns true if the message was a resource message that was processed. 114 // Returns true if the message was a resource message that was processed.
112 bool OnMessageReceived(const IPC::Message& message, 115 bool OnMessageReceived(const IPC::Message& message,
113 ResourceMessageFilter* filter); 116 ResourceMessageFilter* filter);
114 117
115 // Initiates a save file from the browser process (as opposed to a resource 118 // Initiates a save file from the browser process (as opposed to a resource
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 DelegateMap delegate_map_; 508 DelegateMap delegate_map_;
506 509
507 scoped_ptr<ResourceScheduler> scheduler_; 510 scoped_ptr<ResourceScheduler> scheduler_;
508 511
509 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 512 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
510 }; 513 };
511 514
512 } // namespace content 515 } // namespace content
513 516
514 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 517 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698