| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 // The request is downloaded to the network cache, but not rendered or | 143 // The request is downloaded to the network cache, but not rendered or |
| 144 // executed. The renderer will see this as an aborted request. | 144 // executed. The renderer will see this as an aborted request. |
| 145 bool download_to_network_cache_only() const { | 145 bool download_to_network_cache_only() const { |
| 146 return download_to_network_cache_only_; | 146 return download_to_network_cache_only_; |
| 147 } | 147 } |
| 148 void set_download_to_network_cache_only(bool download_to_cache) { | 148 void set_download_to_network_cache_only(bool download_to_cache) { |
| 149 download_to_network_cache_only_ = download_to_cache; | 149 download_to_network_cache_only_ = download_to_cache; |
| 150 } | 150 } |
| 151 | 151 |
| 152 // Copy of the settings value determining if mixed plugin content should be |
| 153 // blocked. |
| 154 bool block_mixed_plugin_content() const { |
| 155 return block_mixed_plugin_content_; |
| 156 } |
| 157 void set_block_mixed_plugin_content(bool block_mixed_plugin_content) { |
| 158 block_mixed_plugin_content_ = block_mixed_plugin_content; |
| 159 } |
| 160 |
| 152 void CopyToResourceRequest(ResourceRequest* request) const; | 161 void CopyToResourceRequest(ResourceRequest* request) const; |
| 153 | 162 |
| 154 private: | 163 private: |
| 155 blink::WebPageVisibilityState visibility_state_; | 164 blink::WebPageVisibilityState visibility_state_; |
| 156 int render_frame_id_; | 165 int render_frame_id_; |
| 157 bool is_main_frame_; | 166 bool is_main_frame_; |
| 158 url::Origin frame_origin_; | 167 url::Origin frame_origin_; |
| 159 bool parent_is_main_frame_; | 168 bool parent_is_main_frame_; |
| 160 int parent_render_frame_id_; | 169 int parent_render_frame_id_; |
| 161 bool allow_download_; | 170 bool allow_download_; |
| 162 ui::PageTransition transition_type_; | 171 ui::PageTransition transition_type_; |
| 163 bool should_replace_current_entry_; | 172 bool should_replace_current_entry_; |
| 164 int transferred_request_child_id_; | 173 int transferred_request_child_id_; |
| 165 int transferred_request_request_id_; | 174 int transferred_request_request_id_; |
| 166 int service_worker_provider_id_; | 175 int service_worker_provider_id_; |
| 167 bool originated_from_service_worker_; | 176 bool originated_from_service_worker_; |
| 168 blink::WebString custom_user_agent_; | 177 blink::WebString custom_user_agent_; |
| 169 blink::WebString requested_with_; | 178 blink::WebString requested_with_; |
| 170 std::unique_ptr<StreamOverrideParameters> stream_override_; | 179 std::unique_ptr<StreamOverrideParameters> stream_override_; |
| 171 bool initiated_in_secure_context_; | 180 bool initiated_in_secure_context_; |
| 172 bool is_prefetch_; | 181 bool is_prefetch_; |
| 173 bool download_to_network_cache_only_; | 182 bool download_to_network_cache_only_; |
| 183 bool block_mixed_plugin_content_; |
| 174 | 184 |
| 175 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 185 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 176 }; | 186 }; |
| 177 | 187 |
| 178 } // namespace content | 188 } // namespace content |
| 179 | 189 |
| 180 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 190 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |