| 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 20 matching lines...) Expand all Loading... |
| 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/network/ResourceResponse.h" | 34 #include "platform/network/ResourceResponse.h" |
| 35 #include "platform/weborigin/KURL.h" | 35 #include "platform/weborigin/KURL.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class PLATFORM_EXPORT ArchiveResource final : public RefCountedWillBeGarbageColl
ectedFinalized<ArchiveResource> { | 41 class PLATFORM_EXPORT ArchiveResource final : public GarbageCollectedFinalized<A
rchiveResource> { |
| 42 public: | 42 public: |
| 43 static PassRefPtrWillBeRawPtr<ArchiveResource> create( | 43 static RawPtr<ArchiveResource> create( |
| 44 PassRefPtr<SharedBuffer>, | 44 PassRefPtr<SharedBuffer>, |
| 45 const KURL&, | 45 const KURL&, |
| 46 const String& contentId, | 46 const String& contentId, |
| 47 const AtomicString& mimeType, | 47 const AtomicString& mimeType, |
| 48 const AtomicString& textEncoding); | 48 const AtomicString& textEncoding); |
| 49 | 49 |
| 50 ~ArchiveResource(); | 50 ~ArchiveResource(); |
| 51 | 51 |
| 52 const KURL& url() const { return m_url; } | 52 const KURL& url() const { return m_url; } |
| 53 const String& contentID() const { return m_contentID; } | 53 const String& contentID() const { return m_contentID; } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 String m_contentID; | 70 String m_contentID; |
| 71 ResourceResponse m_response; | 71 ResourceResponse m_response; |
| 72 RefPtr<SharedBuffer> m_data; | 72 RefPtr<SharedBuffer> m_data; |
| 73 AtomicString m_mimeType; | 73 AtomicString m_mimeType; |
| 74 AtomicString m_textEncoding; | 74 AtomicString m_textEncoding; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // ArchiveResource_h | 79 #endif // ArchiveResource_h |
| OLD | NEW |