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

Side by Side Diff: chrome/browser/renderer_host/safe_browsing_resource_handler.cc

Issue 385024: Propagate the "first party for cookies" from WebKit through the resource... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" 5 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 8 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
9 #include "chrome/browser/renderer_host/resource_message_filter.h" 9 #include "chrome/browser/renderer_host/resource_message_filter.h"
10 #include "chrome/common/notification_service.h" 10 #include "chrome/common/notification_service.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 } 235 }
236 236
237 void SafeBrowsingResourceHandler::ResumeRedirect() { 237 void SafeBrowsingResourceHandler::ResumeRedirect() {
238 DCHECK(redirect_id_ != -1); 238 DCHECK(redirect_id_ != -1);
239 239
240 // Give the other resource handlers a chance to handle the redirect. 240 // Give the other resource handlers a chance to handle the redirect.
241 bool defer = false; 241 bool defer = false;
242 next_handler_->OnRequestRedirected(redirect_id_, redirect_url_, 242 next_handler_->OnRequestRedirected(redirect_id_, redirect_url_,
243 redirect_response_, &defer); 243 redirect_response_, &defer);
244 if (!defer) 244 if (!defer) {
245 rdh_->FollowDeferredRedirect(render_process_host_id_, redirect_id_); 245 rdh_->FollowDeferredRedirect(render_process_host_id_, redirect_id_,
246 GURL());
247 }
246 248
247 redirect_response_ = NULL; 249 redirect_response_ = NULL;
248 redirect_id_ = -1; 250 redirect_id_ = -1;
249 Release(); 251 Release();
250 } 252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698