| 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 <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/service_worker/service_worker_types.h" | 13 #include "content/common/service_worker/service_worker_types.h" |
| 14 #include "content/public/common/request_context_frame_type.h" |
| 15 #include "content/public/common/request_context_type.h" |
| 14 #include "content/public/common/resource_type.h" | 16 #include "content/public/common/resource_type.h" |
| 15 #include "net/base/request_priority.h" | 17 #include "net/base/request_priority.h" |
| 16 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 17 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 19 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 18 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 19 | 21 |
| 20 namespace content { | 22 namespace content { |
| 21 | 23 |
| 22 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). | 24 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). |
| 23 struct CONTENT_EXPORT RequestInfo { | 25 struct CONTENT_EXPORT RequestInfo { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 | 51 |
| 50 // Composed of the values defined in url_request_load_flags.h. | 52 // Composed of the values defined in url_request_load_flags.h. |
| 51 int load_flags; | 53 int load_flags; |
| 52 | 54 |
| 53 // Process id of the process making the request. | 55 // Process id of the process making the request. |
| 54 int requestor_pid; | 56 int requestor_pid; |
| 55 | 57 |
| 56 // Indicates if the current request is the main frame load, a sub-frame | 58 // Indicates if the current request is the main frame load, a sub-frame |
| 57 // load, or a sub objects load. | 59 // load, or a sub objects load. |
| 58 ResourceType request_type; | 60 ResourceType request_type; |
| 61 RequestContextType fetch_request_context_type; |
| 62 RequestContextFrameType fetch_frame_type; |
| 59 | 63 |
| 60 // Indicates the priority of this request, as determined by WebKit. | 64 // Indicates the priority of this request, as determined by WebKit. |
| 61 net::RequestPriority priority; | 65 net::RequestPriority priority; |
| 62 | 66 |
| 63 // Used for plugin to browser requests. | 67 // Used for plugin to browser requests. |
| 64 uint32_t request_context; | 68 uint32_t request_context; |
| 65 | 69 |
| 66 // Identifies what appcache host this request is associated with. | 70 // Identifies what appcache host this request is associated with. |
| 67 int appcache_host_id; | 71 int appcache_host_id; |
| 68 | 72 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 92 // Extra data associated with this request. We do not own this pointer. | 96 // Extra data associated with this request. We do not own this pointer. |
| 93 blink::WebURLRequest::ExtraData* extra_data; | 97 blink::WebURLRequest::ExtraData* extra_data; |
| 94 | 98 |
| 95 private: | 99 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(RequestInfo); | 100 DISALLOW_COPY_AND_ASSIGN(RequestInfo); |
| 97 }; | 101 }; |
| 98 | 102 |
| 99 } // namespace content | 103 } // namespace content |
| 100 | 104 |
| 101 #endif // CONTENT_CHILD_REQUEST_INFO_H_ | 105 #endif // CONTENT_CHILD_REQUEST_INFO_H_ |
| OLD | NEW |