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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | |
11 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 10 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
12 | 11 |
13 namespace base { | |
14 class MessageLoopProxy; | |
15 } | |
16 | |
17 namespace WebKit { | 12 namespace WebKit { |
18 class WebURL; | 13 class WebURL; |
19 class WebFileWriter; | 14 class WebFileWriter; |
20 class WebFileWriterClient; | 15 class WebFileWriterClient; |
21 } | 16 } |
22 | 17 |
23 namespace content { | 18 namespace content { |
24 | 19 |
25 class WebFileSystemImpl : public WebKit::WebFileSystem { | 20 class WebFileSystemImpl : public WebKit::WebFileSystem { |
26 public: | 21 public: |
27 explicit WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop); | 22 WebFileSystemImpl(); |
28 virtual ~WebFileSystemImpl(); | 23 virtual ~WebFileSystemImpl() { } |
29 | 24 |
30 // WebFileSystem implementation. | 25 // WebFileSystem implementation. |
31 virtual void move( | 26 virtual void move( |
32 const WebKit::WebURL& src_path, | 27 const WebKit::WebURL& src_path, |
33 const WebKit::WebURL& dest_path, | 28 const WebKit::WebURL& dest_path, |
34 WebKit::WebFileSystemCallbacks*) OVERRIDE; | 29 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
35 virtual void copy( | 30 virtual void copy( |
36 const WebKit::WebURL& src_path, | 31 const WebKit::WebURL& src_path, |
37 const WebKit::WebURL& dest_path, | 32 const WebKit::WebURL& dest_path, |
38 WebKit::WebFileSystemCallbacks*) OVERRIDE; | 33 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
64 WebKit::WebFileSystemCallbacks*) OVERRIDE; | 59 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
65 virtual WebKit::WebFileWriter* createFileWriter( | 60 virtual WebKit::WebFileWriter* createFileWriter( |
66 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE; | 61 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE; |
67 virtual void createFileWriter( | 62 virtual void createFileWriter( |
68 const WebKit::WebURL& path, | 63 const WebKit::WebURL& path, |
69 WebKit::WebFileWriterClient*, | 64 WebKit::WebFileWriterClient*, |
70 WebKit::WebFileSystemCallbacks*) OVERRIDE; | 65 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
71 virtual void createSnapshotFileAndReadMetadata( | 66 virtual void createSnapshotFileAndReadMetadata( |
72 const WebKit::WebURL& path, | 67 const WebKit::WebURL& path, |
73 WebKit::WebFileSystemCallbacks*); | 68 WebKit::WebFileSystemCallbacks*); |
74 | |
75 private: | |
76 scoped_refptr<base::MessageLoopProxy> main_thread_loop_; | |
77 }; | 69 }; |
78 | 70 |
79 } // namespace content | 71 } // namespace content |
80 | 72 |
81 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ | 73 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ |
OLD | NEW |