| 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 22 matching lines...) Expand all Loading... |
| 33 ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, | 33 ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, |
| 34 const KURL& url, | 34 const KURL& url, |
| 35 const String& content_id, | 35 const String& content_id, |
| 36 const AtomicString& mime_type, | 36 const AtomicString& mime_type, |
| 37 const AtomicString& text_encoding) | 37 const AtomicString& text_encoding) |
| 38 : url_(url), | 38 : url_(url), |
| 39 content_id_(content_id), | 39 content_id_(content_id), |
| 40 data_(std::move(data)), | 40 data_(std::move(data)), |
| 41 mime_type_(mime_type), | 41 mime_type_(mime_type), |
| 42 text_encoding_(text_encoding) { | 42 text_encoding_(text_encoding) { |
| 43 ASSERT(data_); | 43 DCHECK(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& content_id, | 50 const String& content_id, |
| 51 const AtomicString& mime_type, | 51 const AtomicString& mime_type, |
| 52 const AtomicString& text_encoding) { | 52 const AtomicString& text_encoding) { |
| 53 return new ArchiveResource(std::move(data), url, content_id, mime_type, | 53 return new ArchiveResource(std::move(data), url, content_id, mime_type, |
| 54 text_encoding); | 54 text_encoding); |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| OLD | NEW |