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

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

Issue 755933002: Revert of "Remove SSLClientAuthHandler's RDH dependency." (https://codereview.chromium.org/59687300… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one other VLOG -> DVLOG conversion Created 6 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Must be called after the ResourceRequestInfo has been created 238 // Must be called after the ResourceRequestInfo has been created
239 // and associated with the request. If |payload| is set to a non-empty value, 239 // and associated with the request. If |payload| is set to a non-empty value,
240 // the value will be sent to the old resource handler instead of canceling 240 // the value will be sent to the old resource handler instead of canceling
241 // it, except on HTTP errors. This is marked virtual so it can be overriden in 241 // it, except on HTTP errors. This is marked virtual so it can be overriden in
242 // testing. 242 // testing.
243 virtual scoped_ptr<ResourceHandler> MaybeInterceptAsStream( 243 virtual scoped_ptr<ResourceHandler> MaybeInterceptAsStream(
244 net::URLRequest* request, 244 net::URLRequest* request,
245 ResourceResponse* response, 245 ResourceResponse* response,
246 std::string* payload); 246 std::string* payload);
247 247
248 void ClearSSLClientAuthHandlerForRequest(net::URLRequest* request);
249
248 ResourceScheduler* scheduler() { return scheduler_.get(); } 250 ResourceScheduler* scheduler() { return scheduler_.get(); }
249 251
250 // Called by a ResourceHandler when it's ready to start reading data and 252 // Called by a ResourceHandler when it's ready to start reading data and
251 // sending it to the renderer. Returns true if there are enough file 253 // sending it to the renderer. Returns true if there are enough file
252 // descriptors available for the shared memory buffer. If false is returned, 254 // descriptors available for the shared memory buffer. If false is returned,
253 // the request should cancel. 255 // the request should cancel.
254 bool HasSufficientResourcesForRequest(net::URLRequest* request); 256 bool HasSufficientResourcesForRequest(net::URLRequest* request);
255 257
256 // Called by a ResourceHandler after it has finished its request and is done 258 // Called by a ResourceHandler after it has finished its request and is done
257 // using its shared memory buffer. Frees up that file descriptor to be used 259 // using its shared memory buffer. Frees up that file descriptor to be used
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 DelegateMap delegate_map_; 551 DelegateMap delegate_map_;
550 552
551 scoped_ptr<ResourceScheduler> scheduler_; 553 scoped_ptr<ResourceScheduler> scheduler_;
552 554
553 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 555 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
554 }; 556 };
555 557
556 } // namespace content 558 } // namespace content
557 559
558 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 560 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698