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

Side by Side Diff: Source/modules/filesystem/DOMFileSystemSync.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/modules/filesystem/DOMFileSystem.h ('k') | Source/modules/filesystem/DirectoryEntry.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) 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 26 matching lines...) Expand all
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class DirectoryEntrySync; 40 class DirectoryEntrySync;
41 class File; 41 class File;
42 class FileEntrySync; 42 class FileEntrySync;
43 class FileWriterSync; 43 class FileWriterSync;
44 class ExceptionState; 44 class ExceptionState;
45 45
46 class DOMFileSystemSync FINAL : public DOMFileSystemBase, public ScriptWrappable { 46 class DOMFileSystemSync FINAL : public DOMFileSystemBase, public ScriptWrappable {
47 DEFINE_WRAPPERTYPEINFO();
47 public: 48 public:
48 static DOMFileSystemSync* create(ExecutionContext* context, const String& na me, FileSystemType type, const KURL& rootURL) 49 static DOMFileSystemSync* create(ExecutionContext* context, const String& na me, FileSystemType type, const KURL& rootURL)
49 { 50 {
50 return new DOMFileSystemSync(context, name, type, rootURL); 51 return new DOMFileSystemSync(context, name, type, rootURL);
51 } 52 }
52 53
53 static DOMFileSystemSync* create(DOMFileSystemBase*); 54 static DOMFileSystemSync* create(DOMFileSystemBase*);
54 55
55 virtual ~DOMFileSystemSync(); 56 virtual ~DOMFileSystemSync();
56 57
57 virtual void reportError(PassOwnPtrWillBeRawPtr<ErrorCallback>, PassRefPtrWi llBeRawPtr<FileError>) OVERRIDE; 58 virtual void reportError(PassOwnPtrWillBeRawPtr<ErrorCallback>, PassRefPtrWi llBeRawPtr<FileError>) OVERRIDE;
58 59
59 DirectoryEntrySync* root(); 60 DirectoryEntrySync* root();
60 61
61 PassRefPtrWillBeRawPtr<File> createFile(const FileEntrySync*, ExceptionState &); 62 PassRefPtrWillBeRawPtr<File> createFile(const FileEntrySync*, ExceptionState &);
62 FileWriterSync* createWriter(const FileEntrySync*, ExceptionState&); 63 FileWriterSync* createWriter(const FileEntrySync*, ExceptionState&);
63 64
64 private: 65 private:
65 DOMFileSystemSync(ExecutionContext*, const String& name, FileSystemType, con st KURL& rootURL); 66 DOMFileSystemSync(ExecutionContext*, const String& name, FileSystemType, con st KURL& rootURL);
66 }; 67 };
67 68
68 } 69 } // namespace blink
69 70
70 #endif // DOMFileSystemSync_h 71 #endif // DOMFileSystemSync_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMFileSystem.h ('k') | Source/modules/filesystem/DirectoryEntry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698