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

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

Issue 596873002: Remove SSLClientAuthHandler's RDH dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Un-refcount, fix cancel cases, remove HttpNetworkSession Created 6 years, 3 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Must be called after the ResourceRequestInfo has been created 228 // Must be called after the ResourceRequestInfo has been created
229 // and associated with the request. If |payload| is set to a non-empty value, 229 // and associated with the request. If |payload| is set to a non-empty value,
230 // the value will be sent to the old resource handler instead of canceling 230 // the value will be sent to the old resource handler instead of canceling
231 // it, except on HTTP errors. 231 // it, except on HTTP errors.
232 scoped_ptr<ResourceHandler> MaybeInterceptAsStream( 232 scoped_ptr<ResourceHandler> MaybeInterceptAsStream(
233 net::URLRequest* request, 233 net::URLRequest* request,
234 ResourceResponse* response, 234 ResourceResponse* response,
235 std::string* payload); 235 std::string* payload);
236 236
237 void ClearSSLClientAuthHandlerForRequest(net::URLRequest* request);
238
239 ResourceScheduler* scheduler() { return scheduler_.get(); } 237 ResourceScheduler* scheduler() { return scheduler_.get(); }
240 238
241 // Called by a ResourceHandler when it's ready to start reading data and 239 // Called by a ResourceHandler when it's ready to start reading data and
242 // sending it to the renderer. Returns true if there are enough file 240 // sending it to the renderer. Returns true if there are enough file
243 // descriptors available for the shared memory buffer. If false is returned, 241 // descriptors available for the shared memory buffer. If false is returned,
244 // the request should cancel. 242 // the request should cancel.
245 bool HasSufficientResourcesForRequest(const net::URLRequest* request_); 243 bool HasSufficientResourcesForRequest(const net::URLRequest* request_);
246 244
247 // Called by a ResourceHandler after it has finished its request and is done 245 // Called by a ResourceHandler after it has finished its request and is done
248 // using its shared memory buffer. Frees up that file descriptor to be used 246 // using its shared memory buffer. Frees up that file descriptor to be used
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 DelegateMap delegate_map_; 534 DelegateMap delegate_map_;
537 535
538 scoped_ptr<ResourceScheduler> scheduler_; 536 scoped_ptr<ResourceScheduler> scheduler_;
539 537
540 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 538 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
541 }; 539 };
542 540
543 } // namespace content 541 } // namespace content
544 542
545 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 543 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698