OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // There should not be a setter exposed, as suggested file name is determine
d based on other headers in a manner that WebCore does not necessarily know abou
t. | 78 // There should not be a setter exposed, as suggested file name is determine
d based on other headers in a manner that WebCore does not necessarily know abou
t. |
79 const String& suggestedFilename() const; | 79 const String& suggestedFilename() const; |
80 void setSuggestedFilename(const String&); | 80 void setSuggestedFilename(const String&); |
81 | 81 |
82 int httpStatusCode() const; | 82 int httpStatusCode() const; |
83 void setHTTPStatusCode(int); | 83 void setHTTPStatusCode(int); |
84 | 84 |
85 const AtomicString& httpStatusText() const; | 85 const AtomicString& httpStatusText() const; |
86 void setHTTPStatusText(const AtomicString&); | 86 void setHTTPStatusText(const AtomicString&); |
87 | 87 |
88 String httpHeaderField(const AtomicString& name) const; | 88 AtomicString httpHeaderField(const AtomicString& name) const; |
89 String httpHeaderField(const char* name) const; | 89 const AtomicString& httpHeaderField(const char* name) const; |
90 void setHTTPHeaderField(const AtomicString& name, const String& value); | 90 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
91 void addHTTPHeaderField(const AtomicString& name, const String& value); | 91 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
92 void clearHTTPHeaderField(const AtomicString& name); | 92 void clearHTTPHeaderField(const AtomicString& name); |
93 const HTTPHeaderMap& httpHeaderFields() const; | 93 const HTTPHeaderMap& httpHeaderFields() const; |
94 | 94 |
95 bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace";
} | 95 bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace";
} |
96 | 96 |
97 bool isAttachment() const; | 97 bool isAttachment() const; |
98 | 98 |
99 // FIXME: These are used by PluginStream on some platforms. Calculations may
differ from just returning plain Last-Modified header. | 99 // FIXME: These are used by PluginStream on some platforms. Calculations may
differ from just returning plain Last-Modified header. |
100 // Leaving it for now but this should go away in favor of generic solution. | 100 // Leaving it for now but this should go away in favor of generic solution. |
101 void setLastModifiedDate(time_t); | 101 void setLastModifiedDate(time_t); |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 double m_responseTime; | 305 double m_responseTime; |
306 String m_remoteIPAddress; | 306 String m_remoteIPAddress; |
307 unsigned short m_remotePort; | 307 unsigned short m_remotePort; |
308 String m_downloadedFilePath; | 308 String m_downloadedFilePath; |
309 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 309 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
310 }; | 310 }; |
311 | 311 |
312 } // namespace WebCore | 312 } // namespace WebCore |
313 | 313 |
314 #endif // ResourceResponse_h | 314 #endif // ResourceResponse_h |
OLD | NEW |