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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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.h ('k') | Source/core/fileapi/FileError.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 21 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/core/fileapi/Blob.h ('k') | Source/core/fileapi/FileError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698