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

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

Issue 1484093002: Allowing multiple SaveItems to have same URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nested-frames-more-involved-fix
Patch Set: Rebasing... Created 5 years 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void CancelRequestsForContext(ResourceContext* context); 121 void CancelRequestsForContext(ResourceContext* context);
122 122
123 // Returns true if the message was a resource message that was processed. 123 // Returns true if the message was a resource message that was processed.
124 bool OnMessageReceived(const IPC::Message& message, 124 bool OnMessageReceived(const IPC::Message& message,
125 ResourceMessageFilter* filter); 125 ResourceMessageFilter* filter);
126 126
127 // Initiates a save file from the browser process (as opposed to a resource 127 // Initiates a save file from the browser process (as opposed to a resource
128 // request from the renderer or another child process). 128 // request from the renderer or another child process).
129 void BeginSaveFile(const GURL& url, 129 void BeginSaveFile(const GURL& url,
130 const Referrer& referrer, 130 const Referrer& referrer,
131 int save_item_id,
131 int save_package_id, 132 int save_package_id,
132 int child_id, 133 int child_id,
133 int render_view_route_id, 134 int render_view_route_id,
134 int render_frame_route_id, 135 int render_frame_route_id,
135 ResourceContext* context); 136 ResourceContext* context);
136 137
137 // Cancels the given request if it still exists. 138 // Cancels the given request if it still exists.
138 void CancelRequest(int child_id, int request_id); 139 void CancelRequest(int child_id, int request_id);
139 140
140 // Marks the request as "parked". This happens if a request is 141 // Marks the request as "parked". This happens if a request is
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 DelegateMap delegate_map_; 599 DelegateMap delegate_map_;
599 600
600 scoped_ptr<ResourceScheduler> scheduler_; 601 scoped_ptr<ResourceScheduler> scheduler_;
601 602
602 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 603 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
603 }; 604 };
604 605
605 } // namespace content 606 } // namespace content
606 607
607 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 608 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_types.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