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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 22904002: When switching processes during redirects, update the cookie policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 4 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 | « content/shell/shell_content_browser_client.h ('k') | content/test/data/set_cookie.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_browser_client.cc
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index 04207d35399bf3de977f29bd816737a481f98772..ac3795481de557b99add984d69dd2fbe4068b860 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -44,6 +44,7 @@ namespace content {
namespace {
ShellContentBrowserClient* g_browser_client;
+bool g_swap_processes_for_redirect = false;
} // namespace
@@ -51,6 +52,10 @@ ShellContentBrowserClient* ShellContentBrowserClient::Get() {
return g_browser_client;
}
+void ShellContentBrowserClient::SetSwapProcessesForRedirect(bool swap) {
+ g_swap_processes_for_redirect = swap;
+}
+
ShellContentBrowserClient::ShellContentBrowserClient()
: shell_browser_main_parts_(NULL) {
DCHECK(!g_browser_client);
@@ -185,6 +190,13 @@ net::NetLog* ShellContentBrowserClient::GetNetLog() {
return shell_browser_main_parts_->net_log();
}
+bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect(
+ ResourceContext* resource_context,
+ const GURL& current_url,
+ const GURL& new_url) {
+ return g_swap_processes_for_redirect;
+}
+
#if defined(OS_ANDROID)
void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const CommandLine& command_line,
« no previous file with comments | « content/shell/shell_content_browser_client.h ('k') | content/test/data/set_cookie.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698