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

Unified Diff: Source/web/WebBlob.cpp

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/websockets/WebSocket.cpp ('k') | Source/web/WebDOMError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebBlob.cpp
diff --git a/Source/web/WebBlob.cpp b/Source/web/WebBlob.cpp
index 4829660370f28676f9836108b2788232775244c8..df23d07de8bc10e736e266a628746e58792c0f40 100644
--- a/Source/web/WebBlob.cpp
+++ b/Source/web/WebBlob.cpp
@@ -45,7 +45,7 @@ WebBlob WebBlob::createFromFile(const WebString& path, long long size)
{
OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendFile(path);
- RefPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size));
+ RefPtrWillBeRawPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size));
return WebBlob(blob);
}
@@ -77,27 +77,22 @@ WebString WebBlob::uuid()
return m_private->uuid();
}
-v8::Handle<v8::Value> WebBlob::toV8Value()
+v8::Handle<v8::Value> WebBlob::toV8Value()
{
if (!m_private.get())
return v8::Handle<v8::Value>();
return toV8(m_private.get(), v8::Handle<v8::Object>(), v8::Isolate::GetCurrent());
}
-WebBlob::WebBlob(const WTF::PassRefPtr<WebCore::Blob>& blob)
+WebBlob::WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>& blob)
: m_private(blob)
{
}
-WebBlob& WebBlob::operator=(const WTF::PassRefPtr<WebCore::Blob>& blob)
+WebBlob& WebBlob::operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>& blob)
{
m_private = blob;
return *this;
}
-WebBlob::operator WTF::PassRefPtr<WebCore::Blob>() const
-{
- return m_private.get();
-}
-
} // namespace blink
« no previous file with comments | « Source/modules/websockets/WebSocket.cpp ('k') | Source/web/WebDOMError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698