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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 service_worker_provider_id_ = service_worker_provider_id; | 91 service_worker_provider_id_ = service_worker_provider_id; |
92 } | 92 } |
93 // true if the request originated from within a service worker e.g. due to | 93 // true if the request originated from within a service worker e.g. due to |
94 // a fetch() in the service worker script. | 94 // a fetch() in the service worker script. |
95 bool originated_from_service_worker() const { | 95 bool originated_from_service_worker() const { |
96 return originated_from_service_worker_; | 96 return originated_from_service_worker_; |
97 } | 97 } |
98 void set_originated_from_service_worker(bool originated_from_service_worker) { | 98 void set_originated_from_service_worker(bool originated_from_service_worker) { |
99 originated_from_service_worker_ = originated_from_service_worker; | 99 originated_from_service_worker_ = originated_from_service_worker; |
100 } | 100 } |
101 LoFiState lofi_state() const { | |
clamy
2016/07/07 15:16:30
Just checking if I understand correctly: currently
megjablon
2016/07/07 19:31:52
Yep. Which is why they got out of sync.
| |
102 return lofi_state_; | |
103 } | |
104 void set_lofi_state(LoFiState lofi_state) { | |
105 lofi_state_ = lofi_state; | |
106 } | |
107 // |custom_user_agent| is used to communicate an overriding custom user agent | 101 // |custom_user_agent| is used to communicate an overriding custom user agent |
108 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no | 102 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no |
109 // override and an empty string to indicate that there should be no user | 103 // override and an empty string to indicate that there should be no user |
110 // agent. | 104 // agent. |
111 const blink::WebString& custom_user_agent() const { | 105 const blink::WebString& custom_user_agent() const { |
112 return custom_user_agent_; | 106 return custom_user_agent_; |
113 } | 107 } |
114 void set_custom_user_agent(const blink::WebString& custom_user_agent) { | 108 void set_custom_user_agent(const blink::WebString& custom_user_agent) { |
115 custom_user_agent_ = custom_user_agent; | 109 custom_user_agent_ = custom_user_agent; |
116 } | 110 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 bool allow_download_; | 143 bool allow_download_; |
150 ui::PageTransition transition_type_; | 144 ui::PageTransition transition_type_; |
151 bool should_replace_current_entry_; | 145 bool should_replace_current_entry_; |
152 int transferred_request_child_id_; | 146 int transferred_request_child_id_; |
153 int transferred_request_request_id_; | 147 int transferred_request_request_id_; |
154 int service_worker_provider_id_; | 148 int service_worker_provider_id_; |
155 bool originated_from_service_worker_; | 149 bool originated_from_service_worker_; |
156 blink::WebString custom_user_agent_; | 150 blink::WebString custom_user_agent_; |
157 blink::WebString requested_with_; | 151 blink::WebString requested_with_; |
158 std::unique_ptr<StreamOverrideParameters> stream_override_; | 152 std::unique_ptr<StreamOverrideParameters> stream_override_; |
159 LoFiState lofi_state_; | |
160 bool initiated_in_secure_context_; | 153 bool initiated_in_secure_context_; |
161 | 154 |
162 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 155 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
163 }; | 156 }; |
164 | 157 |
165 } // namespace content | 158 } // namespace content |
166 | 159 |
167 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 160 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |