| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 class AsyncFileStream; | 44 class AsyncFileStream; |
| 45 class BlobStorageData; | 45 class BlobStorageData; |
| 46 class FileStream; | 46 class FileStream; |
| 47 class ResourceHandleClient; | 47 class ResourceHandleClient; |
| 48 class ResourceRequest; | 48 class ResourceRequest; |
| 49 struct BlobDataItem; | 49 struct BlobDataItem; |
| 50 | 50 |
| 51 #if PLATFORM(CHROMIUM) |
| 52 error error error |
| 53 #endif |
| 54 |
| 51 class BlobResourceHandle : public FileStreamClient, public ResourceHandle { | 55 class BlobResourceHandle : public FileStreamClient, public ResourceHandle { |
| 52 public: | 56 public: |
| 53 static PassRefPtr<BlobResourceHandle> create(PassRefPtr<BlobStorageData> blo
bData, const ResourceRequest& request, ResourceHandleClient* client, bool async
= true) | 57 static PassRefPtr<BlobResourceHandle> create(PassRefPtr<BlobStorageData> blo
bData, const ResourceRequest& request, ResourceHandleClient* client, bool async
= true) |
| 54 { | 58 { |
| 55 return adoptRef(new BlobResourceHandle(blobData, request, client, async)
); | 59 return adoptRef(new BlobResourceHandle(blobData, request, client, async)
); |
| 56 } | 60 } |
| 57 | 61 |
| 58 static void loadResourceSynchronously(PassRefPtr<BlobStorageData> blobData,
const ResourceRequest& request, ResourceError& error, ResourceResponse& response
, Vector<char>& data); | 62 static void loadResourceSynchronously(PassRefPtr<BlobStorageData> blobData,
const ResourceRequest& request, ResourceError& error, ResourceResponse& response
, Vector<char>& data); |
| 59 | 63 |
| 60 // FileStreamClient methods. | 64 // FileStreamClient methods. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 unsigned m_sizeItemCount; | 116 unsigned m_sizeItemCount; |
| 113 unsigned m_readItemCount; | 117 unsigned m_readItemCount; |
| 114 bool m_fileOpened; | 118 bool m_fileOpened; |
| 115 }; | 119 }; |
| 116 | 120 |
| 117 } // namespace WebCore | 121 } // namespace WebCore |
| 118 | 122 |
| 119 #endif // ENABLE(BLOB) | 123 #endif // ENABLE(BLOB) |
| 120 | 124 |
| 121 #endif // BlobResourceHandle_h | 125 #endif // BlobResourceHandle_h |
| OLD | NEW |