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 4462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4473 frame->shouldEnforceStrictMixedContentChecking(); | 4473 frame->shouldEnforceStrictMixedContentChecking(); |
4474 | 4474 |
4475 // Set the URL to be displayed in the browser UI to the user. | 4475 // Set the URL to be displayed in the browser UI to the user. |
4476 params.url = GetLoadingUrl(); | 4476 params.url = GetLoadingUrl(); |
4477 DCHECK(!is_swapped_out_ || params.url == GURL(kSwappedOutURL)); | 4477 DCHECK(!is_swapped_out_ || params.url == GURL(kSwappedOutURL)); |
4478 | 4478 |
4479 if (frame->document().baseURL() != params.url) | 4479 if (frame->document().baseURL() != params.url) |
4480 params.base_url = frame->document().baseURL(); | 4480 params.base_url = frame->document().baseURL(); |
4481 | 4481 |
4482 GetRedirectChain(ds, ¶ms.redirects); | 4482 GetRedirectChain(ds, ¶ms.redirects); |
4483 params.should_update_history = !ds->hasUnreachableURL() && | 4483 params.should_update_history = |
4484 !response.isMultipartPayload() && (response.httpStatusCode() != 404); | 4484 !ds->hasUnreachableURL() && (response.httpStatusCode() != 404); |
4485 | 4485 |
4486 params.searchable_form_url = internal_data->searchable_form_url(); | 4486 params.searchable_form_url = internal_data->searchable_form_url(); |
4487 params.searchable_form_encoding = internal_data->searchable_form_encoding(); | 4487 params.searchable_form_encoding = internal_data->searchable_form_encoding(); |
4488 | 4488 |
4489 params.gesture = render_view_->navigation_gesture_; | 4489 params.gesture = render_view_->navigation_gesture_; |
4490 render_view_->navigation_gesture_ = NavigationGestureUnknown; | 4490 render_view_->navigation_gesture_ = NavigationGestureUnknown; |
4491 | 4491 |
4492 // Make navigation state a part of the DidCommitProvisionalLoad message so | 4492 // Make navigation state a part of the DidCommitProvisionalLoad message so |
4493 // that committed entry has it at all times. | 4493 // that committed entry has it at all times. |
4494 int64_t post_id = -1; | 4494 int64_t post_id = -1; |
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6116 int match_count, | 6116 int match_count, |
6117 int ordinal, | 6117 int ordinal, |
6118 const WebRect& selection_rect, | 6118 const WebRect& selection_rect, |
6119 bool final_status_update) { | 6119 bool final_status_update) { |
6120 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6120 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
6121 selection_rect, ordinal, | 6121 selection_rect, ordinal, |
6122 final_status_update)); | 6122 final_status_update)); |
6123 } | 6123 } |
6124 | 6124 |
6125 } // namespace content | 6125 } // namespace content |
OLD | NEW |