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

Side by Side Diff: Source/core/fileapi/Blob.cpp

Issue 132233004: Update remaining core classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fileapi/Blob.h ('k') | Source/core/fileapi/File.h » ('j') | 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 20 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/core/fileapi/Blob.h ('k') | Source/core/fileapi/File.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698