Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Side by Side Diff: third_party/WebKit/Source/platform/blob/BlobData.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 void RawData::detachFromCurrentThread() {} 68 void RawData::detachFromCurrentThread() {}
69 69
70 void BlobDataItem::detachFromCurrentThread() { 70 void BlobDataItem::detachFromCurrentThread() {
71 data->detachFromCurrentThread(); 71 data->detachFromCurrentThread();
72 path = path.isolatedCopy(); 72 path = path.isolatedCopy();
73 fileSystemURL = fileSystemURL.copy(); 73 fileSystemURL = fileSystemURL.copy();
74 } 74 }
75 75
76 std::unique_ptr<BlobData> BlobData::create() { 76 std::unique_ptr<BlobData> BlobData::create() {
77 return wrapUnique(new BlobData(FileCompositionStatus::NO_UNKNOWN_SIZE_FILES)); 77 return WTF::wrapUnique(
78 new BlobData(FileCompositionStatus::NO_UNKNOWN_SIZE_FILES));
78 } 79 }
79 80
80 std::unique_ptr<BlobData> BlobData::createForFileWithUnknownSize( 81 std::unique_ptr<BlobData> BlobData::createForFileWithUnknownSize(
81 const String& path) { 82 const String& path) {
82 std::unique_ptr<BlobData> data = 83 std::unique_ptr<BlobData> data = WTF::wrapUnique(
83 wrapUnique(new BlobData(FileCompositionStatus::SINGLE_UNKNOWN_SIZE_FILE)); 84 new BlobData(FileCompositionStatus::SINGLE_UNKNOWN_SIZE_FILE));
84 data->m_items.append(BlobDataItem(path)); 85 data->m_items.append(BlobDataItem(path));
85 return data; 86 return data;
86 } 87 }
87 88
88 void BlobData::detachFromCurrentThread() { 89 void BlobData::detachFromCurrentThread() {
89 m_contentType = m_contentType.isolatedCopy(); 90 m_contentType = m_contentType.isolatedCopy();
90 for (size_t i = 0; i < m_items.size(); ++i) 91 for (size_t i = 0; i < m_items.size(); ++i)
91 m_items.at(i).detachFromCurrentThread(); 92 m_items.at(i).detachFromCurrentThread();
92 } 93 }
93 94
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 m_type(isValidBlobType(type) ? type.isolatedCopy() : ""), 226 m_type(isValidBlobType(type) ? type.isolatedCopy() : ""),
226 m_size(size) { 227 m_size(size) {
227 BlobRegistry::addBlobDataRef(m_uuid); 228 BlobRegistry::addBlobDataRef(m_uuid);
228 } 229 }
229 230
230 BlobDataHandle::~BlobDataHandle() { 231 BlobDataHandle::~BlobDataHandle() {
231 BlobRegistry::removeBlobDataRef(m_uuid); 232 BlobRegistry::removeBlobDataRef(m_uuid);
232 } 233 }
233 234
234 } // namespace blink 235 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698