| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 14 matching lines...) Expand all Loading... |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef ArchiveResource_h | 29 #ifndef ArchiveResource_h |
| 30 #define ArchiveResource_h | 30 #define ArchiveResource_h |
| 31 | 31 |
| 32 #include "platform/SharedBuffer.h" | 32 #include "platform/SharedBuffer.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "platform/weborigin/KURL.h" | 34 #include "platform/weborigin/KURL.h" |
| 35 #include "wtf/Forward.h" | 35 #include "platform/wtf/Forward.h" |
| 36 #include "wtf/RefPtr.h" | 36 #include "platform/wtf/RefPtr.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class PLATFORM_EXPORT ArchiveResource final | 40 class PLATFORM_EXPORT ArchiveResource final |
| 41 : public GarbageCollectedFinalized<ArchiveResource> { | 41 : public GarbageCollectedFinalized<ArchiveResource> { |
| 42 public: | 42 public: |
| 43 static ArchiveResource* Create(PassRefPtr<SharedBuffer>, | 43 static ArchiveResource* Create(PassRefPtr<SharedBuffer>, |
| 44 const KURL&, | 44 const KURL&, |
| 45 const String& content_id, | 45 const String& content_id, |
| 46 const AtomicString& mime_type, | 46 const AtomicString& mime_type, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 66 KURL url_; | 66 KURL url_; |
| 67 String content_id_; | 67 String content_id_; |
| 68 RefPtr<SharedBuffer> data_; | 68 RefPtr<SharedBuffer> data_; |
| 69 AtomicString mime_type_; | 69 AtomicString mime_type_; |
| 70 AtomicString text_encoding_; | 70 AtomicString text_encoding_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // ArchiveResource_h | 75 #endif // ArchiveResource_h |
| OLD | NEW |