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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
40 40
41 class AsyncFileSystemCallbacks; 41 class AsyncFileSystemCallbacks;
42 class CallbackWrapper; 42 class CallbackWrapper;
43 class FileSystemClient; 43 class FileSystemClient;
44 class ExecutionContext; 44 class ExecutionContext;
45 class KURL; 45 class KURL;
46 class LocalFrame; 46 class LocalFrame;
47 class WebFileSystem; 47 class WebFileSystem;
48 48
49 class LocalFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen t<WorkerClients> { 49 class LocalFileSystem final : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<LocalFrame>, public WillBeHeapSupplemen t<WorkerClients> {
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem);
51 WTF_MAKE_NONCOPYABLE(LocalFileSystem); 51 WTF_MAKE_NONCOPYABLE(LocalFileSystem);
52 public: 52 public:
53 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>); 53 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>);
54 virtual ~LocalFileSystem(); 54 virtual ~LocalFileSystem();
55 55
56 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>); 56 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>);
57 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>); 57 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>);
58 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>); 58 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>);
59 59
60 FileSystemClient* client() { return m_client.get(); } 60 FileSystemClient* client() { return m_client.get(); }
61 61
62 static const char* supplementName(); 62 static const char* supplementName();
63 static LocalFileSystem* from(ExecutionContext&); 63 static LocalFileSystem* from(ExecutionContext&);
64 64
65 virtual void trace(Visitor* visitor) OVERRIDE 65 virtual void trace(Visitor* visitor) override
66 { 66 {
67 WillBeHeapSupplement<LocalFrame>::trace(visitor); 67 WillBeHeapSupplement<LocalFrame>::trace(visitor);
68 WillBeHeapSupplement<WorkerClients>::trace(visitor); 68 WillBeHeapSupplement<WorkerClients>::trace(visitor);
69 } 69 }
70 70
71 protected: 71 protected:
72 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); 72 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>);
73 73
74 private: 74 private:
75 WebFileSystem* fileSystem() const; 75 WebFileSystem* fileSystem() const;
76 void requestFileSystemAccessInternal(ExecutionContext*, const Closure& allow ed, const Closure& denied); 76 void requestFileSystemAccessInternal(ExecutionContext*, const Closure& allow ed, const Closure& denied);
77 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*); 77 void fileSystemNotAvailable(PassRefPtrWillBeRawPtr<ExecutionContext>, Callba ckWrapper*);
78 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*); 78 void fileSystemNotAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, CallbackWrapper*);
79 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*); 79 void fileSystemAllowedInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, Fil eSystemType, CallbackWrapper*);
80 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*); 80 void resolveURLInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, const KURL &, CallbackWrapper*);
81 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*); 81 void deleteFileSystemInternal(PassRefPtrWillBeRawPtr<ExecutionContext>, File SystemType, CallbackWrapper*);
82 OwnPtr<FileSystemClient> m_client; 82 OwnPtr<FileSystemClient> m_client;
83 }; 83 };
84 84
85 } // namespace blink 85 } // namespace blink
86 86
87 #endif // LocalFileSystem_h 87 #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