| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 stream_override_ = std::move(stream_override); | 126 stream_override_ = std::move(stream_override); |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool initiated_in_secure_context() const { | 129 bool initiated_in_secure_context() const { |
| 130 return initiated_in_secure_context_; | 130 return initiated_in_secure_context_; |
| 131 } | 131 } |
| 132 void set_initiated_in_secure_context(bool secure) { | 132 void set_initiated_in_secure_context(bool secure) { |
| 133 initiated_in_secure_context_ = secure; | 133 initiated_in_secure_context_ = secure; |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool is_prefetch_only() const { return is_prefetch_only_; } |
| 137 void set_is_prefetch_only(bool prefetch) { is_prefetch_only_ = prefetch; } |
| 138 |
| 136 private: | 139 private: |
| 137 blink::WebPageVisibilityState visibility_state_; | 140 blink::WebPageVisibilityState visibility_state_; |
| 138 int render_frame_id_; | 141 int render_frame_id_; |
| 139 bool is_main_frame_; | 142 bool is_main_frame_; |
| 140 GURL frame_origin_; | 143 GURL frame_origin_; |
| 141 bool parent_is_main_frame_; | 144 bool parent_is_main_frame_; |
| 142 int parent_render_frame_id_; | 145 int parent_render_frame_id_; |
| 143 bool allow_download_; | 146 bool allow_download_; |
| 144 ui::PageTransition transition_type_; | 147 ui::PageTransition transition_type_; |
| 145 bool should_replace_current_entry_; | 148 bool should_replace_current_entry_; |
| 146 int transferred_request_child_id_; | 149 int transferred_request_child_id_; |
| 147 int transferred_request_request_id_; | 150 int transferred_request_request_id_; |
| 148 int service_worker_provider_id_; | 151 int service_worker_provider_id_; |
| 149 bool originated_from_service_worker_; | 152 bool originated_from_service_worker_; |
| 150 blink::WebString custom_user_agent_; | 153 blink::WebString custom_user_agent_; |
| 151 blink::WebString requested_with_; | 154 blink::WebString requested_with_; |
| 152 std::unique_ptr<StreamOverrideParameters> stream_override_; | 155 std::unique_ptr<StreamOverrideParameters> stream_override_; |
| 153 bool initiated_in_secure_context_; | 156 bool initiated_in_secure_context_; |
| 157 bool is_prefetch_only_; |
| 154 | 158 |
| 155 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 159 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace content | 162 } // namespace content |
| 159 | 163 |
| 160 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 164 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |