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

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

Issue 1118993002: Oilpan: IDL union objects should be put in HeapVector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/File.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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 enum ContentTypeLookupPolicy { 49 enum ContentTypeLookupPolicy {
50 WellKnownContentTypes, 50 WellKnownContentTypes,
51 AllContentTypes, 51 AllContentTypes,
52 }; 52 };
53 53
54 // The user should not be able to browse to some files, such as the ones 54 // The user should not be able to browse to some files, such as the ones
55 // generated by the Filesystem API. 55 // generated by the Filesystem API.
56 enum UserVisibility { IsUserVisible, IsNotUserVisible }; 56 enum UserVisibility { IsUserVisible, IsNotUserVisible };
57 57
58 // Constructor in File.idl 58 // Constructor in File.idl
59 static File* create(const Vector<BlobOrStringOrArrayBufferViewOrArrayBuffer> &, const String& fileName, const FilePropertyBag&, ExceptionState&); 59 static File* create(const HeapVector<BlobOrStringOrArrayBufferViewOrArrayBuf fer>&, const String& fileName, const FilePropertyBag&, ExceptionState&);
60 60
61 static File* create(const String& path, ContentTypeLookupPolicy policy = Wel lKnownContentTypes) 61 static File* create(const String& path, ContentTypeLookupPolicy policy = Wel lKnownContentTypes)
62 { 62 {
63 return new File(path, policy, File::IsUserVisible); 63 return new File(path, policy, File::IsUserVisible);
64 } 64 }
65 65
66 static File* create(const String& name, double modificationTime, PassRefPtr< BlobDataHandle> blobDataHandle) 66 static File* create(const String& name, double modificationTime, PassRefPtr< BlobDataHandle> blobDataHandle)
67 { 67 {
68 return new File(name, modificationTime, blobDataHandle); 68 return new File(name, modificationTime, blobDataHandle);
69 } 69 }
(...skipping 111 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/File.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698