| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 unsigned short remotePort() const { return m_remotePort; } | 281 unsigned short remotePort() const { return m_remotePort; } |
| 282 void setRemotePort(unsigned short value) { m_remotePort = value; } | 282 void setRemotePort(unsigned short value) { m_remotePort = value; } |
| 283 | 283 |
| 284 const String& downloadedFilePath() const { return m_downloadedFilePath; } | 284 const String& downloadedFilePath() const { return m_downloadedFilePath; } |
| 285 void setDownloadedFilePath(const String&); | 285 void setDownloadedFilePath(const String&); |
| 286 | 286 |
| 287 // Extra data associated with this response. | 287 // Extra data associated with this response. |
| 288 ExtraData* getExtraData() const { return m_extraData.get(); } | 288 ExtraData* getExtraData() const { return m_extraData.get(); } |
| 289 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 289 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
| 290 | 290 |
| 291 // The ResourceResponse subclass may "shadow" this method to provide platfor
m-specific memory usage information | |
| 292 unsigned memoryUsage() const | 291 unsigned memoryUsage() const |
| 293 { | 292 { |
| 294 // average size, mostly due to URL and Header Map strings | 293 // average size, mostly due to URL and Header Map strings |
| 295 return 1280; | 294 return 1280; |
| 296 } | 295 } |
| 297 | 296 |
| 298 // This method doesn't compare the all members. | 297 // This method doesn't compare the all members. |
| 299 static bool compare(const ResourceResponse&, const ResourceResponse&); | 298 static bool compare(const ResourceResponse&, const ResourceResponse&); |
| 300 | 299 |
| 301 private: | 300 private: |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 int64_t m_responseTime; | 454 int64_t m_responseTime; |
| 456 String m_remoteIPAddress; | 455 String m_remoteIPAddress; |
| 457 unsigned short m_remotePort; | 456 unsigned short m_remotePort; |
| 458 String m_downloadedFilePath; | 457 String m_downloadedFilePath; |
| 459 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 458 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 460 }; | 459 }; |
| 461 | 460 |
| 462 } // namespace blink | 461 } // namespace blink |
| 463 | 462 |
| 464 #endif // ResourceResponse_h | 463 #endif // ResourceResponse_h |
| OLD | NEW |