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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool isValidBlobType(const String& type) | 52 bool isValidBlobType(const String& type) |
53 { | 53 { |
54 for (unsigned i = 0; i < type.length(); ++i) { | 54 for (unsigned i = 0; i < type.length(); ++i) { |
55 UChar c = type[i]; | 55 UChar c = type[i]; |
56 if (c < 0x20 || c > 0x7E) | 56 if (c < 0x20 || c > 0x7E) |
57 return false; | 57 return false; |
58 } | 58 } |
59 return true; | 59 return true; |
60 } | 60 } |
61 | 61 |
62 } | 62 } // namespace |
63 | 63 |
64 const long long BlobDataItem::toEndOfFile = -1; | 64 const long long BlobDataItem::toEndOfFile = -1; |
65 | 65 |
66 RawData::RawData() | 66 RawData::RawData() |
67 { | 67 { |
68 } | 68 } |
69 | 69 |
70 void RawData::detachFromCurrentThread() | 70 void RawData::detachFromCurrentThread() |
71 { | 71 { |
72 } | 72 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 { | 218 { |
219 BlobRegistry::addBlobDataRef(m_uuid); | 219 BlobRegistry::addBlobDataRef(m_uuid); |
220 } | 220 } |
221 | 221 |
222 BlobDataHandle::~BlobDataHandle() | 222 BlobDataHandle::~BlobDataHandle() |
223 { | 223 { |
224 BlobRegistry::removeBlobDataRef(m_uuid); | 224 BlobRegistry::removeBlobDataRef(m_uuid); |
225 } | 225 } |
226 | 226 |
227 } // namespace blink | 227 } // namespace blink |
OLD | NEW |