| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/fileapi/Blob.h" | 32 #include "core/fileapi/Blob.h" |
| 33 | 33 |
| 34 #include "platform/blob/BlobRegistry.h" | 34 #include "platform/blob/BlobRegistry.h" |
| 35 #include "platform/blob/BlobURL.h" | 35 #include "platform/blob/BlobURL.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 namespace { | 39 namespace { |
| 40 | 40 |
| 41 class BlobURLRegistry : public URLRegistry { | 41 class BlobURLRegistry FINAL : public URLRegistry { |
| 42 public: | 42 public: |
| 43 virtual void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*) OVER
RIDE; | 43 virtual void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*) OVER
RIDE; |
| 44 virtual void unregisterURL(const KURL&) OVERRIDE; | 44 virtual void unregisterURL(const KURL&) OVERRIDE; |
| 45 | 45 |
| 46 static URLRegistry& registry(); | 46 static URLRegistry& registry(); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 void BlobURLRegistry::registerURL(SecurityOrigin* origin, const KURL& publicURL,
URLRegistrable* blob) | 49 void BlobURLRegistry::registerURL(SecurityOrigin* origin, const KURL& publicURL,
URLRegistrable* blob) |
| 50 { | 50 { |
| 51 ASSERT(&blob->registry() == this); | 51 ASSERT(&blob->registry() == this); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size()); | 116 blobData.appendBlob(m_blobDataHandle, 0, m_blobDataHandle->size()); |
| 117 } | 117 } |
| 118 | 118 |
| 119 URLRegistry& Blob::registry() const | 119 URLRegistry& Blob::registry() const |
| 120 { | 120 { |
| 121 return BlobURLRegistry::registry(); | 121 return BlobURLRegistry::registry(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 | 124 |
| 125 } // namespace WebCore | 125 } // namespace WebCore |
| OLD | NEW |