Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 class FileSystemClient; | 42 class FileSystemClient; |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 | 44 |
| 45 class LocalFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<Page>, public WillBeHeapSupplement<Work erClients> { | 45 class LocalFileSystem FINAL : public NoBaseWillBeGarbageCollectedFinalized<Local FileSystem>, public WillBeHeapSupplement<Page>, public WillBeHeapSupplement<Work erClients> { |
| 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFileSystem); |
| 47 WTF_MAKE_NONCOPYABLE(LocalFileSystem); | 47 WTF_MAKE_NONCOPYABLE(LocalFileSystem); |
| 48 public: | 48 public: |
| 49 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>); | 49 static PassOwnPtrWillBeRawPtr<LocalFileSystem> create(PassOwnPtr<FileSystemC lient>); |
| 50 virtual ~LocalFileSystem(); | 50 virtual ~LocalFileSystem(); |
| 51 | 51 |
| 52 void resolveURL(ExecutionContext*, const KURL&, PassOwnPtr<AsyncFileSystemCa llbacks>); | 52 void resolveURL(PassRefPtr<ExecutionContext>, const KURL&, PassOwnPtr<AsyncF ileSystemCallbacks>); |
| 53 void requestFileSystem(ExecutionContext*, FileSystemType, long long size, Pa ssOwnPtr<AsyncFileSystemCallbacks>); | 53 void requestFileSystem(PassRefPtr<ExecutionContext>, FileSystemType, long lo ng size, PassOwnPtr<AsyncFileSystemCallbacks>); |
| 54 void deleteFileSystem(ExecutionContext*, FileSystemType, PassOwnPtr<AsyncFil eSystemCallbacks>); | 54 void deleteFileSystem(PassRefPtr<ExecutionContext>, FileSystemType, PassOwnP tr<AsyncFileSystemCallbacks>); |
|
kinuko
2014/05/19 09:02:46
nit: it doesn't look really necessary to change th
Xi Han
2014/05/20 16:13:32
Done.
| |
| 55 | 55 |
| 56 FileSystemClient* client() { return m_client.get(); } | 56 FileSystemClient* client() { return m_client.get(); } |
| 57 | 57 |
| 58 static const char* supplementName(); | 58 static const char* supplementName(); |
| 59 static LocalFileSystem* from(ExecutionContext&); | 59 static LocalFileSystem* from(ExecutionContext&); |
| 60 | 60 |
| 61 virtual void trace(Visitor* visitor) OVERRIDE | 61 virtual void trace(Visitor* visitor) OVERRIDE |
| 62 { | 62 { |
| 63 WillBeHeapSupplement<Page>::trace(visitor); | 63 WillBeHeapSupplement<Page>::trace(visitor); |
| 64 WillBeHeapSupplement<WorkerClients>::trace(visitor); | 64 WillBeHeapSupplement<WorkerClients>::trace(visitor); |
| 65 } | 65 } |
| 66 | |
| 67 protected: | 66 protected: |
| 68 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); | 67 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); |
| 69 | 68 |
| 70 OwnPtr<FileSystemClient> m_client; | 69 OwnPtr<FileSystemClient> m_client; |
| 70 private: | |
| 71 void fileSystemNotAllowedInternal(PassRefPtr<ExecutionContext>, PassOwnPtr<A syncFileSystemCallbacks>); | |
| 72 void fileSystemAllowedInternal(PassRefPtr<ExecutionContext>, FileSystemType, PassOwnPtr<AsyncFileSystemCallbacks>); | |
| 73 void resolveURLInternal(const KURL&, PassOwnPtr<AsyncFileSystemCallbacks>); | |
| 74 void deleteFileSystemInternal(PassRefPtr<ExecutionContext>, FileSystemType, PassOwnPtr<AsyncFileSystemCallbacks>); | |
| 71 }; | 75 }; |
| 72 | 76 |
| 73 } // namespace WebCore | 77 } // namespace WebCore |
| 74 | 78 |
| 75 #endif // LocalFileSystem_h | 79 #endif // LocalFileSystem_h |
| OLD | NEW |