| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef BlobStorageData_h | 31 #ifndef BlobStorageData_h |
| 32 #define BlobStorageData_h | 32 #define BlobStorageData_h |
| 33 | 33 |
| 34 #include "BlobData.h" | 34 #include "BlobData.h" |
| 35 #include <wtf/PassRefPtr.h> | 35 #include <wtf/PassRefPtr.h> |
| 36 #include <wtf/RefCounted.h> | 36 #include <wtf/RefCounted.h> |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 #if PLATFORM(CHROMIUM) |
| 41 error error error |
| 42 #endif |
| 43 |
| 40 class BlobStorageData : public RefCounted<BlobStorageData> { | 44 class BlobStorageData : public RefCounted<BlobStorageData> { |
| 41 public: | 45 public: |
| 42 static PassRefPtr<BlobStorageData> create(const String& contentType, const S
tring& contentDisposition) | 46 static PassRefPtr<BlobStorageData> create(const String& contentType, const S
tring& contentDisposition) |
| 43 { | 47 { |
| 44 return adoptRef(new BlobStorageData(contentType, contentDisposition)); | 48 return adoptRef(new BlobStorageData(contentType, contentDisposition)); |
| 45 } | 49 } |
| 46 | 50 |
| 47 const String& contentType() const { return m_data.contentType(); } | 51 const String& contentType() const { return m_data.contentType(); } |
| 48 const String& contentDisposition() const { return m_data.contentDisposition(
); } | 52 const String& contentDisposition() const { return m_data.contentDisposition(
); } |
| 49 const BlobDataItemList& items() const { return m_data.items(); } | 53 const BlobDataItemList& items() const { return m_data.items(); } |
| 50 | 54 |
| 51 private: | 55 private: |
| 52 friend class BlobRegistryImpl; | 56 friend class BlobRegistryImpl; |
| 53 | 57 |
| 54 BlobStorageData(const String& contentType, const String& contentDisposition) | 58 BlobStorageData(const String& contentType, const String& contentDisposition) |
| 55 { | 59 { |
| 56 m_data.setContentType(contentType); | 60 m_data.setContentType(contentType); |
| 57 m_data.setContentDisposition(contentDisposition); | 61 m_data.setContentDisposition(contentDisposition); |
| 58 } | 62 } |
| 59 | 63 |
| 60 BlobData m_data; | 64 BlobData m_data; |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 } // namespace WebCore | 67 } // namespace WebCore |
| 64 | 68 |
| 65 #endif // BlobStorageData_h | 69 #endif // BlobStorageData_h |
| OLD | NEW |