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

Side by Side Diff: trunk/src/content/child/fileapi/webfilesystem_impl.h

Issue 21008006: Revert 214599 "Revert 214160 "Implement Worker-MainThread bridge..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
Property Changes:
Deleted: svn:mergeinfo
OLDNEW
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"
10 #include "third_party/WebKit/public/platform/WebFileSystem.h" 11 #include "third_party/WebKit/public/platform/WebFileSystem.h"
11 12
13 namespace base {
14 class MessageLoopProxy;
15 }
16
12 namespace WebKit { 17 namespace WebKit {
13 class WebURL; 18 class WebURL;
14 class WebFileWriter; 19 class WebFileWriter;
15 class WebFileWriterClient; 20 class WebFileWriterClient;
16 } 21 }
17 22
18 namespace content { 23 namespace content {
19 24
20 class WebFileSystemImpl : public WebKit::WebFileSystem { 25 class WebFileSystemImpl : public WebKit::WebFileSystem {
21 public: 26 public:
22 WebFileSystemImpl(); 27 explicit WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop);
23 virtual ~WebFileSystemImpl() { } 28 virtual ~WebFileSystemImpl();
24 29
25 // WebFileSystem implementation. 30 // WebFileSystem implementation.
26 virtual void move( 31 virtual void move(
27 const WebKit::WebURL& src_path, 32 const WebKit::WebURL& src_path,
28 const WebKit::WebURL& dest_path, 33 const WebKit::WebURL& dest_path,
29 WebKit::WebFileSystemCallbacks*) OVERRIDE; 34 WebKit::WebFileSystemCallbacks*) OVERRIDE;
30 virtual void copy( 35 virtual void copy(
31 const WebKit::WebURL& src_path, 36 const WebKit::WebURL& src_path,
32 const WebKit::WebURL& dest_path, 37 const WebKit::WebURL& dest_path,
33 WebKit::WebFileSystemCallbacks*) OVERRIDE; 38 WebKit::WebFileSystemCallbacks*) OVERRIDE;
(...skipping 25 matching lines...) Expand all
59 WebKit::WebFileSystemCallbacks*) OVERRIDE; 64 WebKit::WebFileSystemCallbacks*) OVERRIDE;
60 virtual WebKit::WebFileWriter* createFileWriter( 65 virtual WebKit::WebFileWriter* createFileWriter(
61 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE; 66 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE;
62 virtual void createFileWriter( 67 virtual void createFileWriter(
63 const WebKit::WebURL& path, 68 const WebKit::WebURL& path,
64 WebKit::WebFileWriterClient*, 69 WebKit::WebFileWriterClient*,
65 WebKit::WebFileSystemCallbacks*) OVERRIDE; 70 WebKit::WebFileSystemCallbacks*) OVERRIDE;
66 virtual void createSnapshotFileAndReadMetadata( 71 virtual void createSnapshotFileAndReadMetadata(
67 const WebKit::WebURL& path, 72 const WebKit::WebURL& path,
68 WebKit::WebFileSystemCallbacks*); 73 WebKit::WebFileSystemCallbacks*);
74
75 private:
76 scoped_refptr<base::MessageLoopProxy> main_thread_loop_;
69 }; 77 };
70 78
71 } // namespace content 79 } // namespace content
72 80
73 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ 81 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698