| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_INFO_H_ | 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_ |
| 6 #define CONTENT_CHILD_REQUEST_INFO_H_ | 6 #define CONTENT_CHILD_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" |
| 14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 15 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
| 16 #include "content/common/service_worker/service_worker_types.h" | 17 #include "content/common/service_worker/service_worker_types.h" |
| 17 #include "content/public/common/referrer.h" | 18 #include "content/public/common/referrer.h" |
| 18 #include "content/public/common/request_context_frame_type.h" | 19 #include "content/public/common/request_context_frame_type.h" |
| 19 #include "content/public/common/request_context_type.h" | 20 #include "content/public/common/request_context_type.h" |
| 20 #include "content/public/common/resource_type.h" | 21 #include "content/public/common/resource_type.h" |
| 21 #include "net/base/request_priority.h" | 22 #include "net/base/request_priority.h" |
| 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 23 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 23 #include "third_party/WebKit/public/platform/WebTaskRunner.h" | |
| 24 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 24 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 26 #include "url/origin.h" | 26 #include "url/origin.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace base { |
| 29 class WebTaskRunner; | 29 class SingleThreadTaskRunner; |
| 30 } // namespace blink | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 | 33 |
| 34 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). | 34 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). |
| 35 struct CONTENT_EXPORT RequestInfo { | 35 struct CONTENT_EXPORT RequestInfo { |
| 36 RequestInfo(); | 36 RequestInfo(); |
| 37 ~RequestInfo(); | 37 ~RequestInfo(); |
| 38 | 38 |
| 39 // HTTP-style method name (e.g., "GET" or "POST"). | 39 // HTTP-style method name (e.g., "GET" or "POST"). |
| 40 std::string method; | 40 std::string method; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool do_not_prompt_for_login; | 116 bool do_not_prompt_for_login; |
| 117 | 117 |
| 118 // True if the actual headers from the network stack should be reported | 118 // True if the actual headers from the network stack should be reported |
| 119 // to the renderer | 119 // to the renderer |
| 120 bool report_raw_headers; | 120 bool report_raw_headers; |
| 121 | 121 |
| 122 // Extra data associated with this request. We do not own this pointer. | 122 // Extra data associated with this request. We do not own this pointer. |
| 123 blink::WebURLRequest::ExtraData* extra_data; | 123 blink::WebURLRequest::ExtraData* extra_data; |
| 124 | 124 |
| 125 // Optional, the specific task queue to execute loading tasks on. | 125 // Optional, the specific task queue to execute loading tasks on. |
| 126 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner; | 126 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner; |
| 127 | 127 |
| 128 // PlzNavigate: the stream URL to request during navigations to get access to | 128 // PlzNavigate: the stream URL to request during navigations to get access to |
| 129 // the ResourceBody that has already been fetched by the browser process. | 129 // the ResourceBody that has already been fetched by the browser process. |
| 130 GURL resource_body_stream_url; | 130 GURL resource_body_stream_url; |
| 131 | 131 |
| 132 // Whether or not to request a LoFi version of the document or let the browser | 132 // Whether or not to request a LoFi version of the document or let the browser |
| 133 // decide. | 133 // decide. |
| 134 LoFiState lofi_state; | 134 LoFiState lofi_state; |
| 135 | 135 |
| 136 private: | 136 private: |
| 137 DISALLOW_COPY_AND_ASSIGN(RequestInfo); | 137 DISALLOW_COPY_AND_ASSIGN(RequestInfo); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace content | 140 } // namespace content |
| 141 | 141 |
| 142 #endif // CONTENT_CHILD_REQUEST_INFO_H_ | 142 #endif // CONTENT_CHILD_REQUEST_INFO_H_ |
| OLD | NEW |