| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class ExceptionState; | 36 class ExceptionState; |
| 37 class ExecutionContext; | 37 class ExecutionContext; |
| 38 struct FileMetadata; | 38 struct FileMetadata; |
| 39 class KURL; | 39 class KURL; |
| 40 | 40 |
| 41 class File FINAL : public Blob { | 41 class File FINAL : public Blob { |
| 42 DEFINE_WRAPPERTYPEINFO(); |
| 42 public: | 43 public: |
| 43 // AllContentTypes should only be used when the full path/name are trusted;
otherwise, it could | 44 // AllContentTypes should only be used when the full path/name are trusted;
otherwise, it could |
| 44 // allow arbitrary pages to determine what applications an user has installe
d. | 45 // allow arbitrary pages to determine what applications an user has installe
d. |
| 45 enum ContentTypeLookupPolicy { | 46 enum ContentTypeLookupPolicy { |
| 46 WellKnownContentTypes, | 47 WellKnownContentTypes, |
| 47 AllContentTypes, | 48 AllContentTypes, |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 // The user should not be able to browse to some files, such as the ones | 51 // The user should not be able to browse to some files, such as the ones |
| 51 // generated by the Filesystem API. | 52 // generated by the Filesystem API. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 const double m_snapshotModificationTime; | 168 const double m_snapshotModificationTime; |
| 168 | 169 |
| 169 String m_relativePath; | 170 String m_relativePath; |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 DEFINE_TYPE_CASTS(File, Blob, blob, blob->isFile(), blob.isFile()); | 173 DEFINE_TYPE_CASTS(File, Blob, blob, blob->isFile(), blob.isFile()); |
| 173 | 174 |
| 174 } // namespace blink | 175 } // namespace blink |
| 175 | 176 |
| 176 #endif // File_h | 177 #endif // File_h |
| OLD | NEW |