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

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

Issue 631223002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[fetch|fileapi] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/core/fetch/XSLStyleSheetResource.h ('k') | Source/core/fileapi/Blob.cpp » ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // True for all File instances, including the user-built ones. 85 // True for all File instances, including the user-built ones.
86 virtual bool isFile() const { return false; } 86 virtual bool isFile() const { return false; }
87 // Only true for File instances that are backed by platform files. 87 // Only true for File instances that are backed by platform files.
88 virtual bool hasBackingFile() const { return false; } 88 virtual bool hasBackingFile() const { return false; }
89 bool hasBeenClosed() const { return m_hasBeenClosed; } 89 bool hasBeenClosed() const { return m_hasBeenClosed; }
90 90
91 // Used by the JavaScript Blob and File constructors. 91 // Used by the JavaScript Blob and File constructors.
92 virtual void appendTo(BlobData&) const; 92 virtual void appendTo(BlobData&) const;
93 93
94 // URLRegistrable to support PublicURLs. 94 // URLRegistrable to support PublicURLs.
95 virtual URLRegistry& registry() const OVERRIDE FINAL; 95 virtual URLRegistry& registry() const override final;
96 96
97 void trace(Visitor*) { } 97 void trace(Visitor*) { }
98 98
99 protected: 99 protected:
100 explicit Blob(PassRefPtr<BlobDataHandle>); 100 explicit Blob(PassRefPtr<BlobDataHandle>);
101 101
102 static void clampSliceOffsets(long long size, long long& start, long long& e nd); 102 static void clampSliceOffsets(long long size, long long& start, long long& e nd);
103 private: 103 private:
104 Blob(); 104 Blob();
105 105
106 RefPtr<BlobDataHandle> m_blobDataHandle; 106 RefPtr<BlobDataHandle> m_blobDataHandle;
107 bool m_hasBeenClosed; 107 bool m_hasBeenClosed;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // Blob_h 112 #endif // Blob_h
OLDNEW
« no previous file with comments | « Source/core/fetch/XSLStyleSheetResource.h ('k') | Source/core/fileapi/Blob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698