OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_RESOURCE_REQUEST_H_ | 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ |
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ | 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/navigation_params.h" | 13 #include "content/common/navigation_params.h" |
14 #include "content/common/resource_request_body.h" | 14 #include "content/common/resource_request_body_impl.h" |
15 #include "content/common/service_worker/service_worker_types.h" | 15 #include "content/common/service_worker/service_worker_types.h" |
16 #include "content/public/common/appcache_info.h" | 16 #include "content/public/common/appcache_info.h" |
17 #include "content/public/common/request_context_frame_type.h" | 17 #include "content/public/common/request_context_frame_type.h" |
18 #include "content/public/common/request_context_type.h" | 18 #include "content/public/common/request_context_type.h" |
19 #include "content/public/common/resource_type.h" | 19 #include "content/public/common/resource_type.h" |
20 #include "net/base/request_priority.h" | 20 #include "net/base/request_priority.h" |
21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
23 #include "ui/base/page_transition_types.h" | 23 #include "ui/base/page_transition_types.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // The request context passed to the ServiceWorker. | 108 // The request context passed to the ServiceWorker. |
109 RequestContextType fetch_request_context_type = | 109 RequestContextType fetch_request_context_type = |
110 REQUEST_CONTEXT_TYPE_UNSPECIFIED; | 110 REQUEST_CONTEXT_TYPE_UNSPECIFIED; |
111 | 111 |
112 // The frame type passed to the ServiceWorker. | 112 // The frame type passed to the ServiceWorker. |
113 RequestContextFrameType fetch_frame_type = | 113 RequestContextFrameType fetch_frame_type = |
114 REQUEST_CONTEXT_FRAME_TYPE_AUXILIARY; | 114 REQUEST_CONTEXT_FRAME_TYPE_AUXILIARY; |
115 | 115 |
116 // Optional resource request body (may be null). | 116 // Optional resource request body (may be null). |
117 scoped_refptr<ResourceRequestBody> request_body; | 117 scoped_refptr<ResourceRequestBodyImpl> request_body; |
118 | 118 |
119 bool download_to_file = false; | 119 bool download_to_file = false; |
120 | 120 |
121 // True if the request was user initiated. | 121 // True if the request was user initiated. |
122 bool has_user_gesture = false; | 122 bool has_user_gesture = false; |
123 | 123 |
124 // True if load timing data should be collected for request. | 124 // True if load timing data should be collected for request. |
125 bool enable_load_timing = false; | 125 bool enable_load_timing = false; |
126 | 126 |
127 // True if upload progress should be available for request. | 127 // True if upload progress should be available for request. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // browser. | 171 // browser. |
172 GURL resource_body_stream_url; | 172 GURL resource_body_stream_url; |
173 | 173 |
174 // Wether or not the initiator of this request is a secure context. | 174 // Wether or not the initiator of this request is a secure context. |
175 bool initiated_in_secure_context = false; | 175 bool initiated_in_secure_context = false; |
176 }; | 176 }; |
177 | 177 |
178 } // namespace content | 178 } // namespace content |
179 | 179 |
180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ | 180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ |
OLD | NEW |