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