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 RefCountedWillBeGarbageColl
ectedFinalized<ArchiveResource> { |
42 public: | 42 public: |
43 static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffe
r>, const KURL&, const ResourceResponse&); | 43 static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffe
r>, const KURL&, const ResourceResponse&); |
44 static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffe
r>, const KURL&, | 44 static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffe
r>, const KURL&, |
45 const AtomicString& mimeType, const AtomicString& textEncoding, const St
ring& frameName, | 45 const AtomicString& mimeType, const AtomicString& textEncoding, const St
ring& frameName, |
46 const ResourceResponse& = ResourceResponse()); | 46 const ResourceResponse& = ResourceResponse()); |
47 | 47 |
48 ~ArchiveResource(); | 48 ~ArchiveResource(); |
49 | 49 |
50 const KURL& url() const { return m_url; } | 50 const KURL& url() const { return m_url; } |
51 const ResourceResponse& response() const { return m_response; } | 51 const ResourceResponse& response() const { return m_response; } |
(...skipping 11 matching lines...) Expand all Loading... |
63 ResourceResponse m_response; | 63 ResourceResponse m_response; |
64 RefPtr<SharedBuffer> m_data; | 64 RefPtr<SharedBuffer> m_data; |
65 AtomicString m_mimeType; | 65 AtomicString m_mimeType; |
66 AtomicString m_textEncoding; | 66 AtomicString m_textEncoding; |
67 String m_frameName; | 67 String m_frameName; |
68 }; | 68 }; |
69 | 69 |
70 } | 70 } |
71 | 71 |
72 #endif // ArchiveResource_h | 72 #endif // ArchiveResource_h |
OLD | NEW |