| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 const std::string uuid_; | 92 const std::string uuid_; |
| 93 const std::string content_type_; | 93 const std::string content_type_; |
| 94 scoped_ptr<BlobConsolidation> consolidation_; | 94 scoped_ptr<BlobConsolidation> consolidation_; |
| 95 scoped_refptr<ThreadSafeSender> sender_; | 95 scoped_refptr<ThreadSafeSender> sender_; |
| 96 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 96 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 97 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 97 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // Method called on the IO thread. | |
| 101 static void StartBlobAsyncConstruction( | |
| 102 const std::string& uuid, | |
| 103 scoped_ptr<BlobConsolidation> consolidation, | |
| 104 scoped_refptr<ThreadSafeSender> sender, | |
| 105 scoped_refptr<base::SingleThreadTaskRunner> main_runner); | |
| 106 | |
| 107 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; | 100 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; |
| 108 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; | 101 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; |
| 109 scoped_refptr<ThreadSafeSender> sender_; | 102 scoped_refptr<ThreadSafeSender> sender_; |
| 110 }; | 103 }; |
| 111 | 104 |
| 112 } // namespace content | 105 } // namespace content |
| 113 | 106 |
| 114 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ | 107 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ |
| OLD | NEW |