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

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

Issue 1315743003: [part 1] Make classes and structures in modules/ fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class CallbackWrapper; 43 class CallbackWrapper;
44 class FileSystemClient; 44 class FileSystemClient;
45 class ExecutionContext; 45 class ExecutionContext;
46 class KURL; 46 class KURL;
47 class LocalFrame; 47 class LocalFrame;
48 class WebFileSystem; 48 class WebFileSystem;
49 49
50 class LocalFileSystem final : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen t<WorkerClients> { 50 class LocalFileSystem final : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen t<WorkerClients> {
51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem);
52 WTF_MAKE_NONCOPYABLE(LocalFileSystem); 52 WTF_MAKE_NONCOPYABLE(LocalFileSystem);
53 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LocalFileSystem);
53 public: 54 public:
54 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>); 55 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>);
55 virtual ~LocalFileSystem(); 56 virtual ~LocalFileSystem();
56 57
57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>); 58 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>);
58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>); 59 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>);
59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>); 60 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>);
60 61
61 FileSystemClient* client() { return m_client.get(); } 62 FileSystemClient* client() { return m_client.get(); }
62 63
(...skipping 16 matching lines...) Expand all
79 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); 80 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*);
80 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); 81 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*);
81 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); 82 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*);
82 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); 83 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*);
83 OwnPtr<FileSystemClient> m_client; 84 OwnPtr<FileSystemClient> m_client;
84 }; 85 };
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // LocalFileSystem_h 89 #endif // LocalFileSystem_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/HTMLInputElementFileSystem.cpp ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698