Chromium Code Reviews| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/child/web_url_loader_impl.h" | 9 #include "content/child/web_url_loader_impl.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/common/navigation_params.h" | |
| 11 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 12 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 12 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 14 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 14 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // Can be used by callers to store extra data on every ResourceRequest | 19 // Can be used by callers to store extra data on every ResourceRequest |
| 19 // which will be incorporated into the ResourceHostMsg_Request message | 20 // which will be incorporated into the ResourceHostMsg_Request message |
| 20 // sent by ResourceDispatcher. | 21 // sent by ResourceDispatcher. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 // navigation requests. | 108 // navigation requests. |
| 108 scoped_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() { | 109 scoped_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() { |
| 109 return stream_override_.Pass(); | 110 return stream_override_.Pass(); |
| 110 } | 111 } |
| 111 | 112 |
| 112 void set_stream_override( | 113 void set_stream_override( |
| 113 scoped_ptr<StreamOverrideParameters> stream_override) { | 114 scoped_ptr<StreamOverrideParameters> stream_override) { |
| 114 stream_override_ = stream_override.Pass(); | 115 stream_override_ = stream_override.Pass(); |
| 115 } | 116 } |
| 116 | 117 |
| 118 LoFiState lofi_state() const { | |
| 119 return lofi_state_; | |
| 120 } | |
| 121 void set_lofi_state(LoFiState lofi_state) { | |
|
bengr
2015/08/25 00:00:02
Add a blank line above.
megjablon
2015/08/25 20:29:46
Moved above where there isn't spacing between sett
| |
| 122 lofi_state_ = lofi_state; | |
| 123 } | |
| 124 | |
| 117 private: | 125 private: |
| 118 blink::WebPageVisibilityState visibility_state_; | 126 blink::WebPageVisibilityState visibility_state_; |
| 119 int render_frame_id_; | 127 int render_frame_id_; |
| 120 bool is_main_frame_; | 128 bool is_main_frame_; |
| 121 GURL frame_origin_; | 129 GURL frame_origin_; |
| 122 bool parent_is_main_frame_; | 130 bool parent_is_main_frame_; |
| 123 int parent_render_frame_id_; | 131 int parent_render_frame_id_; |
| 124 bool allow_download_; | 132 bool allow_download_; |
| 125 ui::PageTransition transition_type_; | 133 ui::PageTransition transition_type_; |
| 126 bool should_replace_current_entry_; | 134 bool should_replace_current_entry_; |
| 127 int transferred_request_child_id_; | 135 int transferred_request_child_id_; |
| 128 int transferred_request_request_id_; | 136 int transferred_request_request_id_; |
| 129 int service_worker_provider_id_; | 137 int service_worker_provider_id_; |
| 130 blink::WebString custom_user_agent_; | 138 blink::WebString custom_user_agent_; |
| 131 blink::WebString requested_with_; | 139 blink::WebString requested_with_; |
| 132 scoped_ptr<StreamOverrideParameters> stream_override_; | 140 scoped_ptr<StreamOverrideParameters> stream_override_; |
| 141 LoFiState lofi_state_; | |
| 133 | 142 |
| 134 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 143 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 135 }; | 144 }; |
| 136 | 145 |
| 137 } // namespace content | 146 } // namespace content |
| 138 | 147 |
| 139 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 148 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |