| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class BlobConsolidation; | 26 class BlobConsolidation; |
| 27 class ThreadSafeSender; | 27 class ThreadSafeSender; |
| 28 | 28 |
| 29 class WebBlobRegistryImpl : public blink::WebBlobRegistry { | 29 class WebBlobRegistryImpl : public blink::WebBlobRegistry { |
| 30 public: | 30 public: |
| 31 WebBlobRegistryImpl(scoped_refptr<base::SingleThreadTaskRunner> io_runner, | 31 WebBlobRegistryImpl(scoped_refptr<base::SingleThreadTaskRunner> io_runner, |
| 32 scoped_refptr<base::SingleThreadTaskRunner> main_runner, | 32 scoped_refptr<base::SingleThreadTaskRunner> main_runner, |
| 33 scoped_refptr<ThreadSafeSender> sender); | 33 scoped_refptr<ThreadSafeSender> sender); |
| 34 ~WebBlobRegistryImpl() override; | 34 ~WebBlobRegistryImpl() override; |
| 35 | 35 |
| 36 base::SingleThreadTaskRunner* GetIORunner() override; |
| 37 |
| 36 // TODO(dmurph): remove this after moving to createBuilder. crbug.com/504583 | 38 // TODO(dmurph): remove this after moving to createBuilder. crbug.com/504583 |
| 37 void RegisterBlobData(const blink::WebString& uuid, | 39 void RegisterBlobData(const blink::WebString& uuid, |
| 38 const blink::WebBlobData& data) override; | 40 const blink::WebBlobData& data) override; |
| 39 | 41 |
| 40 std::unique_ptr<blink::WebBlobRegistry::Builder> CreateBuilder( | 42 std::unique_ptr<blink::WebBlobRegistry::Builder> CreateBuilder( |
| 41 const blink::WebString& uuid, | 43 const blink::WebString& uuid, |
| 42 const blink::WebString& content_type) override; | 44 const blink::WebString& content_type) override; |
| 43 | 45 |
| 44 void AddBlobDataRef(const blink::WebString& uuid) override; | 46 void AddBlobDataRef(const blink::WebString& uuid) override; |
| 45 void RemoveBlobDataRef(const blink::WebString& uuid) override; | 47 void RemoveBlobDataRef(const blink::WebString& uuid) override; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 99 |
| 98 storage::BlobStorageLimits limits_; | 100 storage::BlobStorageLimits limits_; |
| 99 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 101 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 100 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 102 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 101 scoped_refptr<ThreadSafeSender> sender_; | 103 scoped_refptr<ThreadSafeSender> sender_; |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace content | 106 } // namespace content |
| 105 | 107 |
| 106 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 108 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
| OLD | NEW |