| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual ~ExtraData() { } | 124 virtual ~ExtraData() { } |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 explicit ResourceResponse(CrossThreadResourceResponseData*); | 127 explicit ResourceResponse(CrossThreadResourceResponseData*); |
| 128 | 128 |
| 129 // Gets a copy of the data suitable for passing to another thread. | 129 // Gets a copy of the data suitable for passing to another thread. |
| 130 std::unique_ptr<CrossThreadResourceResponseData> copyData() const; | 130 std::unique_ptr<CrossThreadResourceResponseData> copyData() const; |
| 131 | 131 |
| 132 ResourceResponse(); | 132 ResourceResponse(); |
| 133 ResourceResponse(const KURL&, const AtomicString& mimeType, long long expect
edLength, const AtomicString& textEncodingName, const String& filename); | 133 ResourceResponse(const KURL&, const AtomicString& mimeType, long long expect
edLength, const AtomicString& textEncodingName, const String& filename); |
| 134 ResourceResponse(const ResourceResponse&); |
| 135 ResourceResponse& operator=(const ResourceResponse&); |
| 134 | 136 |
| 135 bool isNull() const { return m_isNull; } | 137 bool isNull() const { return m_isNull; } |
| 136 bool isHTTP() const; | 138 bool isHTTP() const; |
| 137 | 139 |
| 138 const KURL& url() const; | 140 const KURL& url() const; |
| 139 void setURL(const KURL&); | 141 void setURL(const KURL&); |
| 140 | 142 |
| 141 const AtomicString& mimeType() const; | 143 const AtomicString& mimeType() const; |
| 142 void setMimeType(const AtomicString&); | 144 void setMimeType(const AtomicString&); |
| 143 | 145 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 int64_t m_responseTime; | 453 int64_t m_responseTime; |
| 452 String m_remoteIPAddress; | 454 String m_remoteIPAddress; |
| 453 unsigned short m_remotePort; | 455 unsigned short m_remotePort; |
| 454 String m_downloadedFilePath; | 456 String m_downloadedFilePath; |
| 455 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 457 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 456 }; | 458 }; |
| 457 | 459 |
| 458 } // namespace blink | 460 } // namespace blink |
| 459 | 461 |
| 460 #endif // ResourceResponse_h | 462 #endif // ResourceResponse_h |
| OLD | NEW |