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_WEBFILEWRITER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_FILEAPI_WEBFILEWRITER_IMPL_H_ |
6 #define CONTENT_CHILD_FILEAPI_WEBFILEWRITER_IMPL_H_ | 6 #define CONTENT_CHILD_FILEAPI_WEBFILEWRITER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/message_loop/message_loop_proxy.h" | |
13 #include "content/child/fileapi/webfilewriter_base.h" | 12 #include "content/child/fileapi/webfilewriter_base.h" |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 | 15 |
17 // An implementation of WebFileWriter for use in chrome renderers and workers. | 16 // An implementation of WebFileWriter for use in chrome renderers and workers. |
18 class WebFileWriterImpl : public WebFileWriterBase, | 17 class WebFileWriterImpl : public WebFileWriterBase, |
19 public base::SupportsWeakPtr<WebFileWriterImpl> { | 18 public base::SupportsWeakPtr<WebFileWriterImpl> { |
20 public: | 19 public: |
21 enum Type { | 20 enum Type { |
22 TYPE_SYNC, | 21 TYPE_SYNC, |
(...skipping 20 matching lines...) Expand all Loading... |
43 | 42 |
44 void RunOnMainThread(const base::Closure& closure); | 43 void RunOnMainThread(const base::Closure& closure); |
45 | 44 |
46 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 45 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
47 scoped_refptr<WriterBridge> bridge_; | 46 scoped_refptr<WriterBridge> bridge_; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace content | 49 } // namespace content |
51 | 50 |
52 #endif // CONTENT_CHILD_FILEAPI_WEBFILEWRITER_IMPL_H_ | 51 #endif // CONTENT_CHILD_FILEAPI_WEBFILEWRITER_IMPL_H_ |
OLD | NEW |