OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebURLRequest_h | 31 #ifndef WebURLRequest_h |
32 #define WebURLRequest_h | 32 #define WebURLRequest_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebHTTPBody.h" | 35 #include "WebHTTPBody.h" |
36 #include "WebReferrerPolicy.h" | 36 #include "WebReferrerPolicy.h" |
37 | 37 |
38 #if INSIDE_BLINK | |
39 namespace blink { class ResourceRequest; } | |
40 #endif | |
41 | |
42 namespace blink { | 38 namespace blink { |
43 | 39 |
| 40 class ResourceRequest; |
44 class WebCString; | 41 class WebCString; |
45 class WebHTTPBody; | 42 class WebHTTPBody; |
46 class WebHTTPHeaderVisitor; | 43 class WebHTTPHeaderVisitor; |
47 class WebString; | 44 class WebString; |
48 class WebURL; | 45 class WebURL; |
49 class WebURLRequestPrivate; | 46 class WebURLRequestPrivate; |
50 | 47 |
51 class WebURLRequest { | 48 class WebURLRequest { |
52 public: | 49 public: |
53 enum CachePolicy { | 50 enum CachePolicy { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // deleted when the last resource request is destroyed. Setting the extra | 217 // deleted when the last resource request is destroyed. Setting the extra |
221 // data pointer will cause the underlying resource request to be | 218 // data pointer will cause the underlying resource request to be |
222 // dissociated from any existing non-null extra data pointer. | 219 // dissociated from any existing non-null extra data pointer. |
223 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 220 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
224 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 221 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
225 | 222 |
226 BLINK_PLATFORM_EXPORT Priority priority() const; | 223 BLINK_PLATFORM_EXPORT Priority priority() const; |
227 BLINK_PLATFORM_EXPORT void setPriority(Priority); | 224 BLINK_PLATFORM_EXPORT void setPriority(Priority); |
228 | 225 |
229 #if INSIDE_BLINK | 226 #if INSIDE_BLINK |
230 BLINK_PLATFORM_EXPORT blink::ResourceRequest& toMutableResourceRequest(); | 227 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
231 BLINK_PLATFORM_EXPORT const blink::ResourceRequest& toResourceRequest() cons
t; | 228 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
232 #endif | 229 #endif |
233 | 230 |
234 protected: | 231 protected: |
235 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 232 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
236 | 233 |
237 private: | 234 private: |
238 WebURLRequestPrivate* m_private; | 235 WebURLRequestPrivate* m_private; |
239 }; | 236 }; |
240 | 237 |
241 } // namespace blink | 238 } // namespace blink |
242 | 239 |
243 #endif | 240 #endif |
OLD | NEW |