| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 public: | 45 public: |
| 46 WebHTTPLoadInfo() { initialize(); } | 46 WebHTTPLoadInfo() { initialize(); } |
| 47 ~WebHTTPLoadInfo() { reset(); } | 47 ~WebHTTPLoadInfo() { reset(); } |
| 48 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } | 48 WebHTTPLoadInfo(const WebHTTPLoadInfo& r) { assign(r); } |
| 49 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) | 49 WebHTTPLoadInfo& operator =(const WebHTTPLoadInfo& r) |
| 50 { | 50 { |
| 51 assign(r); | 51 assign(r); |
| 52 return *this; | 52 return *this; |
| 53 } | 53 } |
| 54 | 54 |
| 55 BLINK_EXPORT void initialize(); | 55 BLINK_PLATFORM_EXPORT void initialize(); |
| 56 BLINK_EXPORT void reset(); | 56 BLINK_PLATFORM_EXPORT void reset(); |
| 57 BLINK_EXPORT void assign(const WebHTTPLoadInfo& r); | 57 BLINK_PLATFORM_EXPORT void assign(const WebHTTPLoadInfo& r); |
| 58 | 58 |
| 59 BLINK_EXPORT int httpStatusCode() const; | 59 BLINK_PLATFORM_EXPORT int httpStatusCode() const; |
| 60 BLINK_EXPORT void setHTTPStatusCode(int); | 60 BLINK_PLATFORM_EXPORT void setHTTPStatusCode(int); |
| 61 | 61 |
| 62 BLINK_EXPORT WebString httpStatusText() const; | 62 BLINK_PLATFORM_EXPORT WebString httpStatusText() const; |
| 63 BLINK_EXPORT void setHTTPStatusText(const WebString&); | 63 BLINK_PLATFORM_EXPORT void setHTTPStatusText(const WebString&); |
| 64 | 64 |
| 65 BLINK_EXPORT long long encodedDataLength() const; | 65 BLINK_PLATFORM_EXPORT long long encodedDataLength() const; |
| 66 BLINK_EXPORT void setEncodedDataLength(long long); | 66 BLINK_PLATFORM_EXPORT void setEncodedDataLength(long long); |
| 67 | 67 |
| 68 BLINK_EXPORT void addRequestHeader(const WebString& name, const WebString& v
alue); | 68 BLINK_PLATFORM_EXPORT void addRequestHeader(const WebString& name, const Web
String& value); |
| 69 BLINK_EXPORT void addResponseHeader(const WebString& name, const WebString&
value); | 69 BLINK_PLATFORM_EXPORT void addResponseHeader(const WebString& name, const We
bString& value); |
| 70 | 70 |
| 71 BLINK_EXPORT WebString requestHeadersText() const; | 71 BLINK_PLATFORM_EXPORT WebString requestHeadersText() const; |
| 72 BLINK_EXPORT void setRequestHeadersText(const WebString&); | 72 BLINK_PLATFORM_EXPORT void setRequestHeadersText(const WebString&); |
| 73 | 73 |
| 74 BLINK_EXPORT WebString responseHeadersText() const; | 74 BLINK_PLATFORM_EXPORT WebString responseHeadersText() const; |
| 75 BLINK_EXPORT void setResponseHeadersText(const WebString&); | 75 BLINK_PLATFORM_EXPORT void setResponseHeadersText(const WebString&); |
| 76 | 76 |
| 77 #if BLINK_IMPLEMENTATION | 77 #if INSIDE_BLINK |
| 78 WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadInfo>); | 78 BLINK_PLATFORM_EXPORT WebHTTPLoadInfo(WTF::PassRefPtr<WebCore::ResourceLoadI
nfo>); |
| 79 operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>() const; | 79 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<WebCore::ResourceLoadInfo>()
const; |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 WebPrivatePtr<WebCore::ResourceLoadInfo> m_private; | 83 WebPrivatePtr<WebCore::ResourceLoadInfo> m_private; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace WebKit | 86 } // namespace WebKit |
| 87 | 87 |
| 88 #endif | 88 #endif |
| OLD | NEW |