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 4050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4061 extra_data->set_allow_download( | 4061 extra_data->set_allow_download( |
4062 navigation_state->common_params().allow_download); | 4062 navigation_state->common_params().allow_download); |
4063 extra_data->set_transition_type(transition_type); | 4063 extra_data->set_transition_type(transition_type); |
4064 extra_data->set_should_replace_current_entry(should_replace_current_entry); | 4064 extra_data->set_should_replace_current_entry(should_replace_current_entry); |
4065 extra_data->set_transferred_request_child_id( | 4065 extra_data->set_transferred_request_child_id( |
4066 navigation_state->start_params().transferred_request_child_id); | 4066 navigation_state->start_params().transferred_request_child_id); |
4067 extra_data->set_transferred_request_request_id( | 4067 extra_data->set_transferred_request_request_id( |
4068 navigation_state->start_params().transferred_request_request_id); | 4068 navigation_state->start_params().transferred_request_request_id); |
4069 extra_data->set_service_worker_provider_id(provider_id); | 4069 extra_data->set_service_worker_provider_id(provider_id); |
4070 extra_data->set_stream_override(std::move(stream_override)); | 4070 extra_data->set_stream_override(std::move(stream_override)); |
| 4071 extra_data->set_is_prefetch_only(frame->document().isPrefetchOnly()); |
4071 WebString error; | 4072 WebString error; |
4072 extra_data->set_initiated_in_secure_context( | 4073 extra_data->set_initiated_in_secure_context( |
4073 frame->document().isSecureContext(error)); | 4074 frame->document().isSecureContext(error)); |
4074 request.setExtraData(extra_data); | 4075 request.setExtraData(extra_data); |
4075 | 4076 |
4076 if (request.getLoFiState() == WebURLRequest::LoFiUnspecified) { | 4077 if (request.getLoFiState() == WebURLRequest::LoFiUnspecified) { |
4077 if (is_main_frame_ && !navigation_state->request_committed()) { | 4078 if (is_main_frame_ && !navigation_state->request_committed()) { |
4078 request.setLoFiState(static_cast<WebURLRequest::LoFiState>( | 4079 request.setLoFiState(static_cast<WebURLRequest::LoFiState>( |
4079 navigation_state->common_params().lofi_state)); | 4080 navigation_state->common_params().lofi_state)); |
4080 } else { | 4081 } else { |
(...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6354 // event target. Potentially a Pepper plugin will receive the event. | 6355 // event target. Potentially a Pepper plugin will receive the event. |
6355 // In order to tell whether a plugin gets the last mouse event and which it | 6356 // In order to tell whether a plugin gets the last mouse event and which it |
6356 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6357 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6357 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6358 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6358 // |pepper_last_mouse_event_target_|. | 6359 // |pepper_last_mouse_event_target_|. |
6359 pepper_last_mouse_event_target_ = nullptr; | 6360 pepper_last_mouse_event_target_ = nullptr; |
6360 #endif | 6361 #endif |
6361 } | 6362 } |
6362 | 6363 |
6363 } // namespace content | 6364 } // namespace content |
OLD | NEW |