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 24 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |