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

Side by Side Diff: Source/modules/filesystem/LocalFileSystem.h

Issue 941363003: InlinedVisitor: Migrate filesystem to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>); 57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>);
58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>); 58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>);
59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>); 59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>);
60 60
61 FileSystemClient* client() { return m_client.get(); } 61 FileSystemClient* client() { return m_client.get(); }
62 62
63 static const char* supplementName(); 63 static const char* supplementName();
64 static LocalFileSystem* from(ExecutionContext&); 64 static LocalFileSystem* from(ExecutionContext&);
65 65
66 virtual void trace(Visitor* visitor) override 66 DEFINE_INLINE_VIRTUAL_TRACE()
67 { 67 {
68 WillBeHeapSupplement<LocalFrame>::trace(visitor); 68 WillBeHeapSupplement<LocalFrame>::trace(visitor);
69 WillBeHeapSupplement<WorkerClients>::trace(visitor); 69 WillBeHeapSupplement<WorkerClients>::trace(visitor);
70 } 70 }
71 71
72 protected: 72 protected:
73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); 73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>);
74 74
75 private: 75 private:
76 WebFileSystem* fileSystem() const; 76 WebFileSystem* fileSystem() const;
77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied); 77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<Closure> allowed, PassOwnPtr<Closure> denied);
78 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*); 78 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*);
79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); 79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*);
80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); 80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*);
81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); 81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*);
82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); 82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*);
83 OwnPtr<FileSystemClient> m_client; 83 OwnPtr<FileSystemClient> m_client;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // LocalFileSystem_h 88 #endif // LocalFileSystem_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/InspectorFileSystemAgent.cpp ('k') | Source/modules/filesystem/LocalFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698