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

Unified Diff: content/child/fileapi/webfilesystem_impl.h

Issue 19387002: Implement Worker-MainThread bridge for FileSystem API in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/child/fileapi/webfilesystem_impl.h
diff --git a/content/child/fileapi/webfilesystem_impl.h b/content/child/fileapi/webfilesystem_impl.h
index 6ca0c5b83d13f90013465a5f00ae4bf6c1589bd9..d81b6813d4af9d038227af18702a204fae556832 100644
--- a/content/child/fileapi/webfilesystem_impl.h
+++ b/content/child/fileapi/webfilesystem_impl.h
@@ -7,8 +7,13 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "third_party/WebKit/public/platform/WebFileSystem.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace WebKit {
class WebURL;
class WebFileWriter;
@@ -17,10 +22,13 @@ class WebFileWriterClient;
namespace content {
+class ThreadSafeSender;
+
class WebFileSystemImpl : public WebKit::WebFileSystem {
public:
- WebFileSystemImpl();
- virtual ~WebFileSystemImpl() { }
+ WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop,
+ ThreadSafeSender* sender);
+ virtual ~WebFileSystemImpl();
// WebFileSystem implementation.
virtual void move(
@@ -66,6 +74,10 @@ class WebFileSystemImpl : public WebKit::WebFileSystem {
virtual void createSnapshotFileAndReadMetadata(
const WebKit::WebURL& path,
WebKit::WebFileSystemCallbacks*);
+
+ private:
+ scoped_refptr<base::MessageLoopProxy> main_thread_loop_;
+ scoped_refptr<ThreadSafeSender> sender_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698