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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 BlobData() { } | 195 BlobData() { } |
196 | 196 |
197 // This is only exposed to BlobStorageData. | 197 // This is only exposed to BlobStorageData. |
198 void appendData(const RawData&, long long offset, long long length); | 198 void appendData(const RawData&, long long offset, long long length); |
199 | 199 |
200 String m_contentType; | 200 String m_contentType; |
201 String m_contentDisposition; | 201 String m_contentDisposition; |
202 BlobDataItemList m_items; | 202 BlobDataItemList m_items; |
203 }; | 203 }; |
204 | 204 |
| 205 // FIXME: This class is mostly place holder until I get farther along in landing |
| 206 // https://codereview.chromium.org/11192017/. |
| 207 class BlobDataHandle : public ThreadSafeRefCounted<BlobDataHandle> { |
| 208 public: |
| 209 static PassRefPtr<BlobDataHandle> create(PassOwnPtr<BlobData> data, long lon
g size) |
| 210 { |
| 211 return adoptRef(new BlobDataHandle(data, size)); |
| 212 } |
| 213 |
| 214 ~BlobDataHandle(); |
| 215 |
| 216 private: |
| 217 BlobDataHandle(PassOwnPtr<BlobData> data, long long size); |
| 218 KURL m_internalURL; |
| 219 }; |
| 220 |
205 } // namespace WebCore | 221 } // namespace WebCore |
206 | 222 |
207 #endif // BlobData_h | 223 #endif // BlobData_h |
OLD | NEW |