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