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/public/common/resource_type.h" |
13 #include "net/base/request_priority.h" | 14 #include "net/base/request_priority.h" |
14 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 15 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
15 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 #include "webkit/common/resource_type.h" | |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). | 21 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). |
22 struct CONTENT_EXPORT RequestInfo { | 22 struct CONTENT_EXPORT RequestInfo { |
23 RequestInfo(); | 23 RequestInfo(); |
24 ~RequestInfo(); | 24 ~RequestInfo(); |
25 | 25 |
26 // HTTP-style method name (e.g., "GET" or "POST"). | 26 // HTTP-style method name (e.g., "GET" or "POST"). |
27 std::string method; | 27 std::string method; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Extra data associated with this request. We do not own this pointer. | 78 // Extra data associated with this request. We do not own this pointer. |
79 blink::WebURLRequest::ExtraData* extra_data; | 79 blink::WebURLRequest::ExtraData* extra_data; |
80 | 80 |
81 private: | 81 private: |
82 DISALLOW_COPY_AND_ASSIGN(RequestInfo); | 82 DISALLOW_COPY_AND_ASSIGN(RequestInfo); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
86 | 86 |
87 #endif // CONTENT_CHILD_REQUEST_INFO_H_ | 87 #endif // CONTENT_CHILD_REQUEST_INFO_H_ |
OLD | NEW |