| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ |
| 6 #define CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ | 6 #define CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Deletes thread-specific instance (if exists). For workers it deletes | 42 // Deletes thread-specific instance (if exists). For workers it deletes |
| 43 // itself in OnWorkerRunLoopStopped(), but for an instance created on the | 43 // itself in OnWorkerRunLoopStopped(), but for an instance created on the |
| 44 // main thread this method must be called. | 44 // main thread this method must be called. |
| 45 static void DeleteThreadSpecificInstance(); | 45 static void DeleteThreadSpecificInstance(); |
| 46 | 46 |
| 47 explicit WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop); | 47 explicit WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop); |
| 48 virtual ~WebFileSystemImpl(); | 48 virtual ~WebFileSystemImpl(); |
| 49 | 49 |
| 50 // WorkerTaskRunner::Observer implementation. | 50 // WorkerTaskRunner::Observer implementation. |
| 51 virtual void OnWorkerRunLoopStopped() override; | 51 void OnWorkerRunLoopStopped() override; |
| 52 | 52 |
| 53 // WebFileSystem implementation. | 53 // WebFileSystem implementation. |
| 54 virtual void openFileSystem( | 54 virtual void openFileSystem( |
| 55 const blink::WebURL& storage_partition, | 55 const blink::WebURL& storage_partition, |
| 56 const blink::WebFileSystemType type, | 56 const blink::WebFileSystemType type, |
| 57 blink::WebFileSystemCallbacks); | 57 blink::WebFileSystemCallbacks); |
| 58 virtual void resolveURL( | 58 virtual void resolveURL( |
| 59 const blink::WebURL& filesystem_url, | 59 const blink::WebURL& filesystem_url, |
| 60 blink::WebFileSystemCallbacks) override; | 60 blink::WebFileSystemCallbacks) override; |
| 61 virtual void deleteFileSystem( | 61 virtual void deleteFileSystem( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 CallbacksMap callbacks_; | 122 CallbacksMap callbacks_; |
| 123 int next_callbacks_id_; | 123 int next_callbacks_id_; |
| 124 WaitableCallbackResultsMap waitable_results_; | 124 WaitableCallbackResultsMap waitable_results_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(WebFileSystemImpl); | 126 DISALLOW_COPY_AND_ASSIGN(WebFileSystemImpl); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| 130 | 130 |
| 131 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ | 131 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ |
| OLD | NEW |