| OLD | NEW |
| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // TODO(wtc): should we pass a new first party for cookies URL? |
| 245 rdh_->FollowDeferredRedirect(render_process_host_id_, redirect_id_, | 246 rdh_->FollowDeferredRedirect(render_process_host_id_, redirect_id_, |
| 246 GURL()); | 247 false, GURL()); |
| 247 } | 248 } |
| 248 | 249 |
| 249 redirect_response_ = NULL; | 250 redirect_response_ = NULL; |
| 250 redirect_id_ = -1; | 251 redirect_id_ = -1; |
| 251 Release(); | 252 Release(); |
| 252 } | 253 } |
| OLD | NEW |