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

Side by Side Diff: Source/modules/filesystem/DOMFileSystem.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
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 30 matching lines...) Expand all
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class DirectoryEntry; 44 class DirectoryEntry;
45 class File; 45 class File;
46 class FileCallback; 46 class FileCallback;
47 class FileEntry; 47 class FileEntry;
48 class FileWriterCallback; 48 class FileWriterCallback;
49 49
50 class DOMFileSystem FINAL : public DOMFileSystemBase, public ScriptWrappable, pu blic ActiveDOMObject { 50 class DOMFileSystem FINAL : public DOMFileSystemBase, public ScriptWrappable, pu blic ActiveDOMObject {
51 DEFINE_WRAPPERTYPEINFO();
51 public: 52 public:
52 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst emType, const KURL& rootURL); 53 static DOMFileSystem* create(ExecutionContext*, const String& name, FileSyst emType, const KURL& rootURL);
53 54
54 // Creates a new isolated file system for the given filesystemId. 55 // Creates a new isolated file system for the given filesystemId.
55 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri ng& filesystemId); 56 static DOMFileSystem* createIsolatedFileSystem(ExecutionContext*, const Stri ng& filesystemId);
56 57
57 DirectoryEntry* root(); 58 DirectoryEntry* root();
58 59
59 // DOMFileSystemBase overrides. 60 // DOMFileSystemBase overrides.
60 virtual void addPendingCallbacks() OVERRIDE; 61 virtual void addPendingCallbacks() OVERRIDE;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 233 }
233 234
234 template <typename CB> 235 template <typename CB>
235 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, PassOwn PtrWillBeRawPtr<CB> callback) 236 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, PassOwn PtrWillBeRawPtr<CB> callback)
236 { 237 {
237 ASSERT(executionContext->isContextThread()); 238 ASSERT(executionContext->isContextThread());
238 if (callback) 239 if (callback)
239 executionContext->postTask(adoptPtr(new DispatchCallbackNoArgTask<CB>(ca llback))); 240 executionContext->postTask(adoptPtr(new DispatchCallbackNoArgTask<CB>(ca llback)));
240 } 241 }
241 242
242 } // namespace 243 } // namespace blink
243 244
244 #endif // DOMFileSystem_h 245 #endif // DOMFileSystem_h
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeys.h ('k') | Source/modules/filesystem/DOMFileSystemSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698