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 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // navigation requests. | 125 // navigation requests. |
126 std::unique_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() { | 126 std::unique_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() { |
127 return std::move(stream_override_); | 127 return std::move(stream_override_); |
128 } | 128 } |
129 | 129 |
130 void set_stream_override( | 130 void set_stream_override( |
131 std::unique_ptr<StreamOverrideParameters> stream_override) { | 131 std::unique_ptr<StreamOverrideParameters> stream_override) { |
132 stream_override_ = std::move(stream_override); | 132 stream_override_ = std::move(stream_override); |
133 } | 133 } |
134 | 134 |
| 135 bool initiated_in_secure_context() const { |
| 136 return initiated_in_secure_context_; |
| 137 } |
| 138 void set_initiated_in_secure_context(bool secure) { |
| 139 initiated_in_secure_context_ = secure; |
| 140 } |
| 141 |
135 private: | 142 private: |
136 blink::WebPageVisibilityState visibility_state_; | 143 blink::WebPageVisibilityState visibility_state_; |
137 int render_frame_id_; | 144 int render_frame_id_; |
138 bool is_main_frame_; | 145 bool is_main_frame_; |
139 GURL frame_origin_; | 146 GURL frame_origin_; |
140 bool parent_is_main_frame_; | 147 bool parent_is_main_frame_; |
141 int parent_render_frame_id_; | 148 int parent_render_frame_id_; |
142 bool allow_download_; | 149 bool allow_download_; |
143 ui::PageTransition transition_type_; | 150 ui::PageTransition transition_type_; |
144 bool should_replace_current_entry_; | 151 bool should_replace_current_entry_; |
145 int transferred_request_child_id_; | 152 int transferred_request_child_id_; |
146 int transferred_request_request_id_; | 153 int transferred_request_request_id_; |
147 int service_worker_provider_id_; | 154 int service_worker_provider_id_; |
148 bool originated_from_service_worker_; | 155 bool originated_from_service_worker_; |
149 blink::WebString custom_user_agent_; | 156 blink::WebString custom_user_agent_; |
150 blink::WebString requested_with_; | 157 blink::WebString requested_with_; |
151 std::unique_ptr<StreamOverrideParameters> stream_override_; | 158 std::unique_ptr<StreamOverrideParameters> stream_override_; |
152 LoFiState lofi_state_; | 159 LoFiState lofi_state_; |
| 160 bool initiated_in_secure_context_; |
153 | 161 |
154 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 162 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
155 }; | 163 }; |
156 | 164 |
157 } // namespace content | 165 } // namespace content |
158 | 166 |
159 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 167 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |