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_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
6 #define CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 6 #define CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "storage/common/data_element.h" | 17 #include "storage/common/data_element.h" |
18 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 18 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 class WebThreadSafeData; | 21 class WebThreadSafeData; |
22 } // namespace blink | 22 } // namespace blink |
23 | 23 |
24 namespace storage { | |
25 class DataElement; | |
26 } | |
27 | |
28 namespace content { | 24 namespace content { |
29 class BlobConsolidation; | 25 class BlobConsolidation; |
30 class ThreadSafeSender; | 26 class ThreadSafeSender; |
31 | 27 |
32 class WebBlobRegistryImpl : public blink::WebBlobRegistry { | 28 class WebBlobRegistryImpl : public blink::WebBlobRegistry { |
33 public: | 29 public: |
34 WebBlobRegistryImpl(scoped_refptr<base::SingleThreadTaskRunner> io_runner, | 30 WebBlobRegistryImpl(scoped_refptr<base::SingleThreadTaskRunner> io_runner, |
35 scoped_refptr<base::SingleThreadTaskRunner> main_runner, | 31 scoped_refptr<base::SingleThreadTaskRunner> main_runner, |
36 scoped_refptr<ThreadSafeSender> sender); | 32 scoped_refptr<ThreadSafeSender> sender); |
37 ~WebBlobRegistryImpl() override; | 33 ~WebBlobRegistryImpl() override; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 }; | 95 }; |
100 | 96 |
101 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 97 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
102 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 98 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
103 scoped_refptr<ThreadSafeSender> sender_; | 99 scoped_refptr<ThreadSafeSender> sender_; |
104 }; | 100 }; |
105 | 101 |
106 } // namespace content | 102 } // namespace content |
107 | 103 |
108 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 104 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |