| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ensureMutable(); | 150 ensureMutable(); |
| 151 m_private->appendURLRange(url, start, length, modificationTime); | 151 m_private->appendURLRange(url, start, length, modificationTime); |
| 152 #endif | 152 #endif |
| 153 } | 153 } |
| 154 | 154 |
| 155 void WebHTTPBody::appendBlob(const WebURL& blobURL) | 155 void WebHTTPBody::appendBlob(const WebURL& blobURL) |
| 156 { | 156 { |
| 157 #if ENABLE(BLOB) | 157 #if ENABLE(BLOB) |
| 158 ASSERT(KURL(blobURL).protocolIs("blob")); | 158 ASSERT(KURL(blobURL).protocolIs("blob")); |
| 159 ensureMutable(); | 159 ensureMutable(); |
| 160 m_private->appendBlob(blobURL); | 160 // TODO: BlobDataHandles |
| 161 // Need to either pass in a WebBlobDataHandle or a blob uuid and to construc
t |
| 162 // a BlobDataHandle around that uuid value. This might call for exposing the
such |
| 163 // a class in the WebKit sooner rather than later? |
| 164 //m_private->appendBlob(blobURL); |
| 161 #endif | 165 #endif |
| 162 } | 166 } |
| 163 | 167 |
| 164 long long WebHTTPBody::identifier() const | 168 long long WebHTTPBody::identifier() const |
| 165 { | 169 { |
| 166 ASSERT(!isNull()); | 170 ASSERT(!isNull()); |
| 167 return m_private->identifier(); | 171 return m_private->identifier(); |
| 168 } | 172 } |
| 169 | 173 |
| 170 void WebHTTPBody::setIdentifier(long long identifier) | 174 void WebHTTPBody::setIdentifier(long long identifier) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 } | 212 } |
| 209 | 213 |
| 210 void WebHTTPBody::ensureMutable() | 214 void WebHTTPBody::ensureMutable() |
| 211 { | 215 { |
| 212 ASSERT(!isNull()); | 216 ASSERT(!isNull()); |
| 213 if (!m_private->hasOneRef()) | 217 if (!m_private->hasOneRef()) |
| 214 assign(static_cast<WebHTTPBodyPrivate*>(m_private->copy().leakRef())); | 218 assign(static_cast<WebHTTPBodyPrivate*>(m_private->copy().leakRef())); |
| 215 } | 219 } |
| 216 | 220 |
| 217 } // namespace WebKit | 221 } // namespace WebKit |
| OLD | NEW |