summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_network_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/chrome_network_delegate.cc')
-rw-r--r--chrome/browser/net/chrome_network_delegate.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 1cab93d..bafd11f 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -29,6 +29,7 @@
#include "chrome/browser/net/client_hints.h"
#include "chrome/browser/net/connect_interceptor.h"
#include "chrome/browser/performance_monitor/performance_monitor.h"
+#include "chrome/browser/prerender/prerender_tracker.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/task_manager/task_manager.h"
#include "chrome/common/pref_names.h"
@@ -52,6 +53,7 @@
#include "net/http/http_response_headers.h"
#include "net/socket_stream/socket_stream.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
#if defined(OS_CHROMEOS)
#include "base/command_line.h"
@@ -358,7 +360,8 @@ ChromeNetworkDelegate::ChromeNetworkDelegate(
domain_reliability_monitor_(NULL),
received_content_length_(0),
original_content_length_(0),
- first_request_(true) {
+ first_request_(true),
+ prerender_tracker_(NULL) {
DCHECK(event_router);
DCHECK(enable_referrers);
}
@@ -742,6 +745,13 @@ bool ChromeNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
cookie_line, *options, !allow));
}
+ if (prerender_tracker_) {
+ prerender_tracker_->OnCookieChangedForURL(
+ render_process_id,
+ request.context()->cookie_store()->GetCookieMonster(),
+ request.url());
+ }
+
return allow;
}