| 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/blob_storage/blob_storage_constants.h" |
| 17 #include "storage/common/data_element.h" | 18 #include "storage/common/data_element.h" |
| 18 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 19 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
| 19 | 20 |
| 20 namespace blink { | 21 namespace blink { |
| 21 class WebThreadSafeData; | 22 class WebThreadSafeData; |
| 22 } // namespace blink | 23 } // namespace blink |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 class BlobConsolidation; | 26 class BlobConsolidation; |
| 26 class ThreadSafeSender; | 27 class ThreadSafeSender; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 88 |
| 88 private: | 89 private: |
| 89 const std::string uuid_; | 90 const std::string uuid_; |
| 90 const std::string content_type_; | 91 const std::string content_type_; |
| 91 scoped_refptr<BlobConsolidation> consolidation_; | 92 scoped_refptr<BlobConsolidation> consolidation_; |
| 92 scoped_refptr<ThreadSafeSender> sender_; | 93 scoped_refptr<ThreadSafeSender> sender_; |
| 93 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 94 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 94 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 95 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 95 }; | 96 }; |
| 96 | 97 |
| 98 storage::BlobStorageLimits limits_; |
| 97 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 99 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 98 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 100 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 99 scoped_refptr<ThreadSafeSender> sender_; | 101 scoped_refptr<ThreadSafeSender> sender_; |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace content | 104 } // namespace content |
| 103 | 105 |
| 104 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 106 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
| OLD | NEW |