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

Side by Side Diff: WebCore/fileapi/ThreadableBlobRegistry.cpp

Issue 3449009: Merge 67646 - BlobData should be copied for it to be used cross-thread in Thr... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/files/apply-blob-url-to-img.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 #include "BlobData.h" 35 #include "BlobData.h"
36 #include "BlobRegistry.h" 36 #include "BlobRegistry.h"
37 #include "ScriptExecutionContext.h" 37 #include "ScriptExecutionContext.h"
38 #include <wtf/MainThread.h> 38 #include <wtf/MainThread.h>
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 struct BlobRegistryContext { 42 struct BlobRegistryContext {
43 BlobRegistryContext(const KURL& url, PassOwnPtr<BlobData> blobData) 43 BlobRegistryContext(const KURL& url, PassOwnPtr<BlobData> blobData)
44 : url(url.copy()) 44 : url(url.copy())
45 , blobData(blobData) 45 , blobData(blobData->copy())
46 { 46 {
47 } 47 }
48 48
49 BlobRegistryContext(const KURL& url, const KURL& srcURL) 49 BlobRegistryContext(const KURL& url, const KURL& srcURL)
50 : url(url.copy()) 50 : url(url.copy())
51 , srcURL(srcURL.copy()) 51 , srcURL(srcURL.copy())
52 { 52 {
53 } 53 }
54 54
55 BlobRegistryContext(const KURL& url) 55 BlobRegistryContext(const KURL& url)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void ThreadableBlobRegistry::registerBlobURL(ScriptExecutionContext*, const KURL &, const KURL&) 121 void ThreadableBlobRegistry::registerBlobURL(ScriptExecutionContext*, const KURL &, const KURL&)
122 { 122 {
123 } 123 }
124 124
125 void ThreadableBlobRegistry::unregisterBlobURL(ScriptExecutionContext*, const KU RL&) 125 void ThreadableBlobRegistry::unregisterBlobURL(ScriptExecutionContext*, const KU RL&)
126 { 126 {
127 } 127 }
128 #endif // ENABL(BLOB) 128 #endif // ENABL(BLOB)
129 129
130 } // namespace WebCore 130 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/apply-blob-url-to-img.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698