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

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

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Only true for File instances that are backed by platform files. 86 // Only true for File instances that are backed by platform files.
87 virtual bool hasBackingFile() const { return false; } 87 virtual bool hasBackingFile() const { return false; }
88 bool hasBeenClosed() const { return m_hasBeenClosed; } 88 bool hasBeenClosed() const { return m_hasBeenClosed; }
89 89
90 // Used by the JavaScript Blob and File constructors. 90 // Used by the JavaScript Blob and File constructors.
91 virtual void appendTo(BlobData&) const; 91 virtual void appendTo(BlobData&) const;
92 92
93 // URLRegistrable to support PublicURLs. 93 // URLRegistrable to support PublicURLs.
94 virtual URLRegistry& registry() const OVERRIDE FINAL; 94 virtual URLRegistry& registry() const OVERRIDE FINAL;
95 95
96 void trace(Visitor*) { } 96 virtual void trace(Visitor*) { }
97 97
98 protected: 98 protected:
99 explicit Blob(PassRefPtr<BlobDataHandle>); 99 explicit Blob(PassRefPtr<BlobDataHandle>);
100 100
101 static void clampSliceOffsets(long long size, long long& start, long long& e nd); 101 static void clampSliceOffsets(long long size, long long& start, long long& e nd);
102 private: 102 private:
103 Blob(); 103 Blob();
104 104
105 RefPtr<BlobDataHandle> m_blobDataHandle; 105 RefPtr<BlobDataHandle> m_blobDataHandle;
106 bool m_hasBeenClosed; 106 bool m_hasBeenClosed;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // Blob_h 111 #endif // Blob_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698