| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "config.h" | 32 #include "config.h" |
| 33 #include "public/platform/WebBlobData.h" | 33 #include "public/platform/WebBlobData.h" |
| 34 | 34 |
| 35 #include "platform/blob/BlobData.h" | 35 #include "platform/blob/BlobData.h" |
| 36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 37 | 37 |
| 38 using namespace blink; | |
| 39 | |
| 40 namespace blink { | 38 namespace blink { |
| 41 | 39 |
| 42 WebBlobData::WebBlobData() | 40 WebBlobData::WebBlobData() |
| 43 { | 41 { |
| 44 } | 42 } |
| 45 | 43 |
| 46 WebBlobData::~WebBlobData() | 44 WebBlobData::~WebBlobData() |
| 47 { | 45 { |
| 48 m_private.reset(0); | 46 m_private.reset(0); |
| 49 } | 47 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 m_private.reset(data); | 105 m_private.reset(data); |
| 108 return *this; | 106 return *this; |
| 109 } | 107 } |
| 110 | 108 |
| 111 WebBlobData::operator PassOwnPtr<BlobData>() | 109 WebBlobData::operator PassOwnPtr<BlobData>() |
| 112 { | 110 { |
| 113 return m_private.release(); | 111 return m_private.release(); |
| 114 } | 112 } |
| 115 | 113 |
| 116 } // namespace blink | 114 } // namespace blink |
| OLD | NEW |