OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 DEFINE_STATIC_LOCAL(BlobURLRegistry, instance, ()); | 68 DEFINE_STATIC_LOCAL(BlobURLRegistry, instance, ()); |
69 return instance; | 69 return instance; |
70 } | 70 } |
71 | 71 |
72 } // namespace | 72 } // namespace |
73 | 73 |
74 Blob::Blob(PassRefPtr<BlobDataHandle> dataHandle) | 74 Blob::Blob(PassRefPtr<BlobDataHandle> dataHandle) |
75 : m_blobDataHandle(dataHandle) | 75 : m_blobDataHandle(dataHandle) |
76 , m_hasBeenClosed(false) | 76 , m_hasBeenClosed(false) |
77 { | 77 { |
78 ScriptWrappable::init(this); | |
79 } | 78 } |
80 | 79 |
81 Blob::~Blob() | 80 Blob::~Blob() |
82 { | 81 { |
83 } | 82 } |
84 | 83 |
85 void Blob::clampSliceOffsets(long long size, long long& start, long long& end) | 84 void Blob::clampSliceOffsets(long long size, long long& start, long long& end) |
86 { | 85 { |
87 ASSERT(size != -1); | 86 ASSERT(size != -1); |
88 | 87 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 { | 148 { |
150 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size()); | 149 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size()); |
151 } | 150 } |
152 | 151 |
153 URLRegistry& Blob::registry() const | 152 URLRegistry& Blob::registry() const |
154 { | 153 { |
155 return BlobURLRegistry::registry(); | 154 return BlobURLRegistry::registry(); |
156 } | 155 } |
157 | 156 |
158 } // namespace blink | 157 } // namespace blink |
OLD | NEW |