OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 WebCachedURLRequest_h | 31 #ifndef WebCachedURLRequest_h |
32 #define WebCachedURLRequest_h | 32 #define WebCachedURLRequest_h |
33 | 33 |
34 #include "../../../../public/platform/WebCommon.h" | 34 #include "../../../../public/platform/WebCommon.h" |
35 #include "../../../../public/platform/WebPrivateOwnPtr.h" | 35 #include "../../../../public/platform/WebPrivateOwnPtr.h" |
36 #include "../../../../public/platform/WebString.h" | 36 #include "../../../../public/platform/WebString.h" |
37 #include "WebElement.h" | |
38 | 37 |
39 namespace WebCore { class CachedResourceRequest; } | 38 namespace WebCore { class CachedResourceRequest; } |
40 | 39 |
41 namespace WebKit { | 40 namespace WebKit { |
42 | 41 |
43 class WebElement; | |
44 class WebString; | 42 class WebString; |
45 class WebURLRequest; | 43 class WebURLRequest; |
46 class WrappedResourceRequest; | 44 class WrappedResourceRequest; |
47 | 45 |
48 class WebCachedURLRequest { | 46 class WebCachedURLRequest { |
49 public: | 47 public: |
50 ~WebCachedURLRequest() { reset(); } | 48 ~WebCachedURLRequest() { reset(); } |
51 WEBKIT_EXPORT void reset(); | 49 WEBKIT_EXPORT void reset(); |
52 | 50 |
53 WEBKIT_EXPORT const WebURLRequest& urlRequest() const; | 51 WEBKIT_EXPORT const WebURLRequest& urlRequest() const; |
54 WEBKIT_EXPORT WebString charset() const; | 52 WEBKIT_EXPORT WebString charset() const; |
55 WEBKIT_EXPORT bool forPreload() const; | 53 WEBKIT_EXPORT bool forPreload() const; |
56 WEBKIT_EXPORT WebString initiatorName() const; | 54 WEBKIT_EXPORT WebString initiatorName() const; |
57 WEBKIT_EXPORT WebElement initiatorElement() const; | |
58 | 55 |
59 #if WEBKIT_IMPLEMENTATION | 56 #if WEBKIT_IMPLEMENTATION |
60 explicit WebCachedURLRequest(WebCore::CachedResourceRequest*); | 57 explicit WebCachedURLRequest(WebCore::CachedResourceRequest*); |
61 #endif | 58 #endif |
62 | 59 |
63 private: | 60 private: |
64 WebCachedURLRequest(const WebCachedURLRequest&); | 61 WebCachedURLRequest(const WebCachedURLRequest&); |
65 WebCachedURLRequest& operator=(const WebCachedURLRequest&); | 62 WebCachedURLRequest& operator=(const WebCachedURLRequest&); |
66 | 63 |
67 WebCore::CachedResourceRequest* m_private; | 64 WebCore::CachedResourceRequest* m_private; |
68 mutable WebPrivateOwnPtr<WrappedResourceRequest> m_resourceRequestWrapper; | 65 mutable WebPrivateOwnPtr<WrappedResourceRequest> m_resourceRequestWrapper; |
69 }; | 66 }; |
70 | 67 |
71 } // namespace WebKit | 68 } // namespace WebKit |
72 | 69 |
73 #endif | 70 #endif |
OLD | NEW |