OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3072 } | 3072 } |
3073 | 3073 |
3074 base::TimeTicks navigation_start = | 3074 base::TimeTicks navigation_start = |
3075 navigation_state->common_params().navigation_start; | 3075 navigation_state->common_params().navigation_start; |
3076 DCHECK(!navigation_start.is_null()); | 3076 DCHECK(!navigation_start.is_null()); |
3077 | 3077 |
3078 FOR_EACH_OBSERVER(RenderViewObserver, render_view_->observers(), | 3078 FOR_EACH_OBSERVER(RenderViewObserver, render_view_->observers(), |
3079 DidStartProvisionalLoad(frame)); | 3079 DidStartProvisionalLoad(frame)); |
3080 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, DidStartProvisionalLoad()); | 3080 FOR_EACH_OBSERVER(RenderFrameObserver, observers_, DidStartProvisionalLoad()); |
3081 | 3081 |
3082 Send(new FrameHostMsg_DidStartProvisionalLoad( | 3082 // Don't use MaybeGetOverriddenURL here because error pages need to send the |
3083 routing_id_, ds->request().url(), navigation_start)); | 3083 // overridden url. |
3084 GURL url(ds->request().url()); | |
Charlie Harrison
2016/02/16 20:54:46
This snippet solves the base url / data url proble
Charlie Reis
2016/02/16 21:55:07
This is largely a question for boliu@, since it mi
Charlie Harrison
2016/02/16 22:55:23
Done.
| |
3085 if (document_state->was_load_data_with_base_url_request()) | |
3086 url = document_state->data_url(); | |
3087 Send(new FrameHostMsg_DidStartProvisionalLoad(routing_id_, url, | |
3088 navigation_start)); | |
3084 } | 3089 } |
3085 | 3090 |
3086 void RenderFrameImpl::didReceiveServerRedirectForProvisionalLoad( | 3091 void RenderFrameImpl::didReceiveServerRedirectForProvisionalLoad( |
3087 blink::WebLocalFrame* frame) { | 3092 blink::WebLocalFrame* frame) { |
3088 DCHECK_EQ(frame_, frame); | 3093 DCHECK_EQ(frame_, frame); |
3089 | 3094 |
3090 // We don't use HistoryController in OOPIF enabled modes. | 3095 // We don't use HistoryController in OOPIF enabled modes. |
3091 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) | 3096 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) |
3092 return; | 3097 return; |
3093 | 3098 |
(...skipping 3032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6126 int match_count, | 6131 int match_count, |
6127 int ordinal, | 6132 int ordinal, |
6128 const WebRect& selection_rect, | 6133 const WebRect& selection_rect, |
6129 bool final_status_update) { | 6134 bool final_status_update) { |
6130 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6135 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
6131 selection_rect, ordinal, | 6136 selection_rect, ordinal, |
6132 final_status_update)); | 6137 final_status_update)); |
6133 } | 6138 } |
6134 | 6139 |
6135 } // namespace content | 6140 } // namespace content |
OLD | NEW |