OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 WebHTTPLoadInfo_h | 31 #ifndef WebHTTPLoadInfo_h |
32 #define WebHTTPLoadInfo_h | 32 #define WebHTTPLoadInfo_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebPrivatePtr.h" | 35 #include "WebPrivatePtr.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace blink { |
38 struct ResourceLoadInfo; | 38 struct ResourceLoadInfo; |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 class WebString; | 42 class WebString; |
43 | 43 |
44 class WebHTTPLoadInfo { | 44 class WebHTTPLoadInfo { |
45 public: | 45 public: |
46 WebHTTPLoadInfo() { initialize(); } | 46 WebHTTPLoadInfo() { initialize(); } |
47 ~WebHTTPLoadInfo() { reset(); } | 47 ~WebHTTPLoadInfo() { reset(); } |
(...skipping 20 matching lines...) Expand all Loading... |
68 BLINK_PLATFORM_EXPORT void addRequestHeader(const WebString& name, const Web
String& value); | 68 BLINK_PLATFORM_EXPORT void addRequestHeader(const WebString& name, const Web
String& value); |
69 BLINK_PLATFORM_EXPORT void addResponseHeader(const WebString& name, const We
bString& value); | 69 BLINK_PLATFORM_EXPORT void addResponseHeader(const WebString& name, const We
bString& value); |
70 | 70 |
71 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const; | 71 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const; |
72 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&); | 72 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&); |
73 | 73 |
74 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const; | 74 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const; |
75 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&); | 75 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&); |
76 | 76 |
77 #if INSIDE_BLINK | 77 #if INSIDE_BLINK |
78 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadI
nfo>); | 78 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<blink::ResourceLoadInf
o>); |
79 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>()
const; | 79 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<blink::ResourceLoadInfo>() co
nst; |
80 #endif | 80 #endif |
81 | 81 |
82 private: | 82 private: |
83 WebPrivatePtr<WebCore::ResourceLoadInfo> m_private; | 83 WebPrivatePtr<blink::ResourceLoadInfo> m_private; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
87 | 87 |
88 #endif | 88 #endif |
OLD | NEW |