| 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 18 matching lines...) Expand all Loading... |
| 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 | 38 #if INSIDE_BLINK |
| 39 namespace WebCore { class ResourceRequest; } | 39 namespace blink { class ResourceRequest; } |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class WebCString; | 44 class WebCString; |
| 45 class WebHTTPBody; | 45 class WebHTTPBody; |
| 46 class WebHTTPHeaderVisitor; | 46 class WebHTTPHeaderVisitor; |
| 47 class WebString; | 47 class WebString; |
| 48 class WebURL; | 48 class WebURL; |
| 49 class WebURLRequestPrivate; | 49 class WebURLRequestPrivate; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // deleted when the last resource request is destroyed. Setting the extra | 245 // deleted when the last resource request is destroyed. Setting the extra |
| 246 // data pointer will cause the underlying resource request to be | 246 // data pointer will cause the underlying resource request to be |
| 247 // dissociated from any existing non-null extra data pointer. | 247 // dissociated from any existing non-null extra data pointer. |
| 248 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 248 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
| 249 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 249 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
| 250 | 250 |
| 251 BLINK_PLATFORM_EXPORT Priority priority() const; | 251 BLINK_PLATFORM_EXPORT Priority priority() const; |
| 252 BLINK_PLATFORM_EXPORT void setPriority(Priority); | 252 BLINK_PLATFORM_EXPORT void setPriority(Priority); |
| 253 | 253 |
| 254 #if INSIDE_BLINK | 254 #if INSIDE_BLINK |
| 255 BLINK_PLATFORM_EXPORT WebCore::ResourceRequest& toMutableResourceRequest(); | 255 BLINK_PLATFORM_EXPORT blink::ResourceRequest& toMutableResourceRequest(); |
| 256 BLINK_PLATFORM_EXPORT const WebCore::ResourceRequest& toResourceRequest() co
nst; | 256 BLINK_PLATFORM_EXPORT const blink::ResourceRequest& toResourceRequest() cons
t; |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 // FIXME: Drop these once we replace TargetType upstream. | 259 // FIXME: Drop these once we replace TargetType upstream. |
| 260 static RequestContext requestContextFromTargetType(TargetType); | 260 static RequestContext requestContextFromTargetType(TargetType); |
| 261 static TargetType targetTypeFromRequestContextAndFrameType(RequestContext, F
rameType); | 261 static TargetType targetTypeFromRequestContextAndFrameType(RequestContext, F
rameType); |
| 262 | 262 |
| 263 protected: | 263 protected: |
| 264 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 264 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
| 265 | 265 |
| 266 private: | 266 private: |
| 267 WebURLRequestPrivate* m_private; | 267 WebURLRequestPrivate* m_private; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace blink | 270 } // namespace blink |
| 271 | 271 |
| 272 #endif | 272 #endif |
| OLD | NEW |