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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 29 matching lines...) Expand all
40 namespace blink { 40 namespace blink {
41 41
42 class AsyncFileSystemCallbacks; 42 class AsyncFileSystemCallbacks;
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 GarbageCollectedFinalized<LocalFileSystem>, public HeapSupplement<LocalFrame>, public HeapSupplement<WorkerClients> {
51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); 51 USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem);
52 WTF_MAKE_NONCOPYABLE(LocalFileSystem); 52 WTF_MAKE_NONCOPYABLE(LocalFileSystem);
53 USING_FAST_MALLOC_WILL_BE_REMOVED(LocalFileSystem);
54 public: 53 public:
55 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>); 54 static RawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemClient>);
56 virtual ~LocalFileSystem(); 55 virtual ~LocalFileSystem();
57 56
58 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>); 57 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>);
59 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>); 58 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>);
60 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>); 59 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>);
61 60
62 FileSystemClient* client() { return m_client.get(); } 61 FileSystemClient* client() { return m_client.get(); }
63 62
64 static const char* supplementName(); 63 static const char* supplementName();
65 static LocalFileSystem* from(ExecutionContext&); 64 static LocalFileSystem* from(ExecutionContext&);
66 65
67 DEFINE_INLINE_VIRTUAL_TRACE() 66 DEFINE_INLINE_VIRTUAL_TRACE()
68 { 67 {
69 WillBeHeapSupplement<LocalFrame>::trace(visitor); 68 HeapSupplement<LocalFrame>::trace(visitor);
70 WillBeHeapSupplement<WorkerClients>::trace(visitor); 69 HeapSupplement<WorkerClients>::trace(visitor);
71 } 70 }
72 71
73 protected: 72 protected:
74 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); 73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>);
75 74
76 private: 75 private:
77 WebFileSystem* fileSystem() const; 76 WebFileSystem* fileSystem() const;
78 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<SameThrea dClosure> allowed, PassOwnPtr<SameThreadClosure> denied); 77 void requestFileSystemAccessInternal(ExecutionContext*, PassOwnPtr<SameThrea dClosure> allowed, PassOwnPtr<SameThreadClosure> denied);
79 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*); 78 void fileSystemNotAvailable(RawPtr<ExecutionContext>, CallbackWrapper*);
80 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); 79 void fileSystemNotAllowedInternal(RawPtr<ExecutionContext>, CallbackWrapper* );
81 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); 80 void fileSystemAllowedInternal(RawPtr<ExecutionContext>, FileSystemType, Cal lbackWrapper*);
82 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); 81 void resolveURLInternal(RawPtr<ExecutionContext>, const KURL&, CallbackWrapp er*);
83 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); 82 void deleteFileSystemInternal(RawPtr<ExecutionContext>, FileSystemType, Call backWrapper*);
84 OwnPtr<FileSystemClient> m_client; 83 OwnPtr<FileSystemClient> m_client;
85 }; 84 };
86 85
87 } // namespace blink 86 } // namespace blink
88 87
89 #endif // LocalFileSystem_h 88 #endif // LocalFileSystem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698