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