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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.h

Issue 6992081: Make --allow-cross-domain-auth-prompt equivalent to a preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host.h
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host.h (revision 86721)
+++ content/browser/renderer_host/resource_dispatcher_host.h (working copy)
@@ -262,6 +262,11 @@
static bool is_prefetch_enabled();
static void set_is_prefetch_enabled(bool value);
+ // Controls whether third-party sub-content can pop-up HTTP basic auth
+ // dialog boxes.
+ bool allow_cross_origin_auth_prompt();
+ void set_allow_cross_origin_auth_prompt(bool value);
+
// This does not take ownership of the observer. It is expected that the
// observer have a longer lifetime than the ResourceDispatcherHost.
void set_observer(Observer* observer) { observer_ = observer; }
@@ -428,6 +433,17 @@
int render_view_id,
T* detail);
+ // Relationship of resource being authenticated with the top level page.
+ enum HttpAuthResourceType {
+ HTTP_AUTH_RESOURCE_TOP, // Top-level page itself
+ HTTP_AUTH_RESOURCE_SAME_DOMAIN, // Sub-content from same domain
+ HTTP_AUTH_RESOURCE_BLOCKED_CROSS, // Blocked Sub-content from cross domain
+ HTTP_AUTH_RESOURCE_ALLOWED_CROSS, // Allowed Sub-content per command line
+ HTTP_AUTH_RESOURCE_LAST
+ };
+
+ HttpAuthResourceType HttpAuthResourceTypeOf(net::URLRequest* request);
+
PendingRequestList pending_requests_;
// Collection of temp files downloaded for child processes via
@@ -501,6 +517,7 @@
Observer* observer_;
static bool is_prefetch_enabled_;
+ bool allow_cross_origin_auth_prompt_;
DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
};
« no previous file with comments | « chrome/common/pref_names.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