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

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

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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.cpp ('k') | Source/core/fileapi/FileReader.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 static File* createForFileSystemFile(const String& path, const String& name, ContentTypeLookupPolicy policy = WellKnownContentTypes) 106 static File* createForFileSystemFile(const String& path, const String& name, ContentTypeLookupPolicy policy = WellKnownContentTypes)
107 { 107 {
108 if (name.isEmpty()) 108 if (name.isEmpty())
109 return new File(path, policy, File::IsNotUserVisible); 109 return new File(path, policy, File::IsNotUserVisible);
110 return new File(path, name, policy, File::IsNotUserVisible); 110 return new File(path, name, policy, File::IsNotUserVisible);
111 } 111 }
112 112
113 File* clone(const String& name = String()) const; 113 File* clone(const String& name = String()) const;
114 114
115 virtual unsigned long long size() const override; 115 unsigned long long size() const override;
116 virtual Blob* slice(long long start, long long end, const String& contentTyp e, ExceptionState&) const override; 116 Blob* slice(long long start, long long end, const String& contentType, Excep tionState&) const override;
117 virtual void close(ExecutionContext*, ExceptionState&) override; 117 void close(ExecutionContext*, ExceptionState&) override;
118 118
119 virtual bool isFile() const override { return true; } 119 bool isFile() const override { return true; }
120 virtual bool hasBackingFile() const override { return m_hasBackingFile; } 120 bool hasBackingFile() const override { return m_hasBackingFile; }
121 121
122 virtual void appendTo(BlobData&) const override; 122 void appendTo(BlobData&) const override;
123 123
124 const String& path() const { ASSERT(hasValidFilePath()); return m_path; } 124 const String& path() const { ASSERT(hasValidFilePath()); return m_path; }
125 const String name() const { return m_name; } 125 const String name() const { return m_name; }
126 126
127 // Getter for the lastModified IDL attribute, 127 // Getter for the lastModified IDL attribute,
128 // http://dev.w3.org/2006/webapi/FileAPI/#file-attrs 128 // http://dev.w3.org/2006/webapi/FileAPI/#file-attrs
129 long long lastModified() const; 129 long long lastModified() const;
130 130
131 // Getter for the lastModifiedDate IDL attribute, 131 // Getter for the lastModifiedDate IDL attribute,
132 // http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate 132 // http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const double m_snapshotModificationTimeMS; 181 const double m_snapshotModificationTimeMS;
182 182
183 String m_relativePath; 183 String m_relativePath;
184 }; 184 };
185 185
186 DEFINE_TYPE_CASTS(File, Blob, blob, blob->isFile(), blob.isFile()); 186 DEFINE_TYPE_CASTS(File, Blob, blob, blob->isFile(), blob.isFile());
187 187
188 } // namespace blink 188 } // namespace blink
189 189
190 #endif // File_h 190 #endif // File_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/Blob.cpp ('k') | Source/core/fileapi/FileReader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698