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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 7135003: Remove last extension dependencies from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Controls whether third-party sub-content can pop-up HTTP basic auth 243 // Controls whether third-party sub-content can pop-up HTTP basic auth
244 // dialog boxes. 244 // dialog boxes.
245 bool allow_cross_origin_auth_prompt(); 245 bool allow_cross_origin_auth_prompt();
246 void set_allow_cross_origin_auth_prompt(bool value); 246 void set_allow_cross_origin_auth_prompt(bool value);
247 247
248 // This does not take ownership of the delegate. It is expected that the 248 // This does not take ownership of the delegate. It is expected that the
249 // delegate have a longer lifetime than the ResourceDispatcherHost. 249 // delegate have a longer lifetime than the ResourceDispatcherHost.
250 void set_delegate(ResourceDispatcherHostDelegate* delegate) { 250 void set_delegate(ResourceDispatcherHostDelegate* delegate) {
251 delegate_ = delegate; 251 delegate_ = delegate;
252 } 252 }
253 ResourceDispatcherHostDelegate* delegate() {
254 return delegate_;
255 }
253 256
254 private: 257 private:
255 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, 258 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
256 TestBlockedRequestsProcessDies); 259 TestBlockedRequestsProcessDies);
257 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, 260 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
258 IncrementOutstandingRequestsMemoryCost); 261 IncrementOutstandingRequestsMemoryCost);
259 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, 262 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
260 CalculateApproximateMemoryCost); 263 CalculateApproximateMemoryCost);
261 264
262 class ShutdownTask; 265 class ShutdownTask;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 493
491 ResourceDispatcherHostDelegate* delegate_; 494 ResourceDispatcherHostDelegate* delegate_;
492 495
493 static bool is_prefetch_enabled_; 496 static bool is_prefetch_enabled_;
494 bool allow_cross_origin_auth_prompt_; 497 bool allow_cross_origin_auth_prompt_;
495 498
496 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 499 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
497 }; 500 };
498 501
499 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 502 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698