Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3685 pending_navigation_params_->pending_history_list_offset = | 3685 pending_navigation_params_->pending_history_list_offset = |
| 3686 navigation_state->pending_history_list_offset(); | 3686 navigation_state->pending_history_list_offset(); |
| 3687 pending_navigation_params_->should_clear_history_list = | 3687 pending_navigation_params_->should_clear_history_list = |
| 3688 navigation_state->history_list_was_cleared(); | 3688 navigation_state->history_list_was_cleared(); |
| 3689 pending_navigation_params_->transition = | 3689 pending_navigation_params_->transition = |
| 3690 navigation_state->transition_type(); | 3690 navigation_state->transition_type(); |
| 3691 pending_navigation_params_->request_time = | 3691 pending_navigation_params_->request_time = |
| 3692 document_state->request_time(); | 3692 document_state->request_time(); |
| 3693 } | 3693 } |
| 3694 | 3694 |
| 3695 // Allow the embedder to suppress an error page. | |
| 3696 if (GetContentClient()->renderer()->ShouldSuppressErrorPage( | |
|
Charlie Reis
2013/09/13 22:33:17
Please coordinate with lazyboy@ on this, since he'
Charlie Reis
2013/09/13 22:58:09
I'm not sure I understand your reply. Which part
Jered
2013/09/16 22:30:47
Sorry, I confused myself, you're right. Moved the
| |
| 3697 error.unreachableURL)) { | |
| 3698 return; | |
| 3699 } | |
| 3700 | |
| 3695 // Provide the user with a more helpful error page? | 3701 // Provide the user with a more helpful error page? |
| 3696 if (MaybeLoadAlternateErrorPage(frame, error, replace)) | 3702 if (MaybeLoadAlternateErrorPage(frame, error, replace)) |
| 3697 return; | 3703 return; |
| 3698 | 3704 |
| 3699 // Fallback to a local error page. | 3705 // Fallback to a local error page. |
| 3700 LoadNavigationErrorPage(frame, failed_request, error, std::string(), replace); | 3706 LoadNavigationErrorPage(frame, failed_request, error, std::string(), replace); |
| 3701 } | 3707 } |
| 3702 | 3708 |
| 3703 void RenderViewImpl::didCommitProvisionalLoad(WebFrame* frame, | 3709 void RenderViewImpl::didCommitProvisionalLoad(WebFrame* frame, |
| 3704 bool is_new_navigation) { | 3710 bool is_new_navigation) { |
| (...skipping 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6531 for (size_t i = 0; i < icon_urls.size(); i++) { | 6537 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 6532 WebURL url = icon_urls[i].iconURL(); | 6538 WebURL url = icon_urls[i].iconURL(); |
| 6533 if (!url.isEmpty()) | 6539 if (!url.isEmpty()) |
| 6534 urls.push_back(FaviconURL(url, | 6540 urls.push_back(FaviconURL(url, |
| 6535 ToFaviconType(icon_urls[i].iconType()))); | 6541 ToFaviconType(icon_urls[i].iconType()))); |
| 6536 } | 6542 } |
| 6537 SendUpdateFaviconURL(urls); | 6543 SendUpdateFaviconURL(urls); |
| 6538 } | 6544 } |
| 6539 | 6545 |
| 6540 } // namespace content | 6546 } // namespace content |
| OLD | NEW |