| 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 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 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 blink { | 37 namespace blink { |
| 38 |
| 39 class WebString; |
| 38 struct ResourceLoadInfo; | 40 struct ResourceLoadInfo; |
| 39 } | |
| 40 | |
| 41 namespace blink { | |
| 42 class WebString; | |
| 43 | 41 |
| 44 class WebHTTPLoadInfo { | 42 class WebHTTPLoadInfo { |
| 45 public: | 43 public: |
| 46 WebHTTPLoadInfo() { initialize(); } | 44 WebHTTPLoadInfo() { initialize(); } |
| 47 ~WebHTTPLoadInfo() { reset(); } | 45 ~WebHTTPLoadInfo() { reset(); } |
| 48 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } | 46 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } |
| 49 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) | 47 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) |
| 50 { | 48 { |
| 51 assign(r); | 49 assign(r); |
| 52 return *this; | 50 return *this; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 BLINK_PLATFORM_EXPORT void addRequestHeader(const WebString& name, const Web
String& value); | 66 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); | 67 BLINK_PLATFORM_EXPORT void addResponseHeader(const WebString& name, const We
bString& value); |
| 70 | 68 |
| 71 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const; | 69 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const; |
| 72 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&); | 70 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&); |
| 73 | 71 |
| 74 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const; | 72 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const; |
| 75 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&); | 73 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&); |
| 76 | 74 |
| 77 #if INSIDE_BLINK | 75 #if INSIDE_BLINK |
| 78 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<blink::ResourceLoadInf
o>); | 76 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<ResourceLoadInfo>); |
| 79 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<blink::ResourceLoadInfo>() co
nst; | 77 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<ResourceLoadInfo>() const; |
| 80 #endif | 78 #endif |
| 81 | 79 |
| 82 private: | 80 private: |
| 83 WebPrivatePtr<blink::ResourceLoadInfo> m_private; | 81 WebPrivatePtr<ResourceLoadInfo> m_private; |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 } // namespace blink | 84 } // namespace blink |
| 87 | 85 |
| 88 #endif | 86 #endif |
| OLD | NEW |