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 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, | 33 ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, |
34 const KURL& url, | 34 const KURL& url, |
35 const String& contentID, | 35 const String& contentID, |
36 const AtomicString& mimeType, | 36 const AtomicString& mimeType, |
37 const AtomicString& textEncoding) | 37 const AtomicString& textEncoding) |
38 : m_url(url), | 38 : m_url(url), |
39 m_contentID(contentID), | 39 m_contentID(contentID), |
40 m_data(data), | 40 m_data(std::move(data)), |
41 m_mimeType(mimeType), | 41 m_mimeType(mimeType), |
42 m_textEncoding(textEncoding) { | 42 m_textEncoding(textEncoding) { |
43 ASSERT(m_data); | 43 ASSERT(m_data); |
44 } | 44 } |
45 | 45 |
46 ArchiveResource::~ArchiveResource() {} | 46 ArchiveResource::~ArchiveResource() {} |
47 | 47 |
48 ArchiveResource* ArchiveResource::create(PassRefPtr<SharedBuffer> data, | 48 ArchiveResource* ArchiveResource::create(PassRefPtr<SharedBuffer> data, |
49 const KURL& url, | 49 const KURL& url, |
50 const String& contentID, | 50 const String& contentID, |
51 const AtomicString& mimeType, | 51 const AtomicString& mimeType, |
52 const AtomicString& textEncoding) { | 52 const AtomicString& textEncoding) { |
53 return new ArchiveResource(std::move(data), url, contentID, mimeType, | 53 return new ArchiveResource(std::move(data), url, contentID, mimeType, |
54 textEncoding); | 54 textEncoding); |
55 } | 55 } |
56 | 56 |
57 } // namespace blink | 57 } // namespace blink |
OLD | NEW |