| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 std::unique_ptr<DataTypeErrorHandler> error_handler) = 0; | 111 std::unique_ptr<DataTypeErrorHandler> error_handler) = 0; |
| 112 | 112 |
| 113 // Creates attachment service. | 113 // Creates attachment service. |
| 114 // Note: Should only be called from the model type thread. | 114 // Note: Should only be called from the model type thread. |
| 115 // | 115 // |
| 116 // |store_birthday| is the store birthday. Must not be empty. | 116 // |store_birthday| is the store birthday. Must not be empty. |
| 117 // | 117 // |
| 118 // |model_type| is the model type this AttachmentService will be used with. | 118 // |model_type| is the model type this AttachmentService will be used with. |
| 119 // | 119 // |
| 120 // |delegate| is optional delegate for AttachmentService to notify about | 120 // |delegate| is optional delegate for AttachmentService to notify about |
| 121 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not | 121 // asynchronous events (AttachmentUploaded). Pass null if delegate is not |
| 122 // provided. AttachmentService doesn't take ownership of delegate, the pointer | 122 // provided. AttachmentService doesn't take ownership of delegate, the pointer |
| 123 // must be valid throughout AttachmentService lifetime. | 123 // must be valid throughout AttachmentService lifetime. |
| 124 virtual std::unique_ptr<AttachmentService> CreateAttachmentService( | 124 virtual std::unique_ptr<AttachmentService> CreateAttachmentService( |
| 125 std::unique_ptr<AttachmentStoreForSync> attachment_store, | 125 std::unique_ptr<AttachmentStoreForSync> attachment_store, |
| 126 const UserShare& user_share, | 126 const UserShare& user_share, |
| 127 const std::string& store_birthday, | 127 const std::string& store_birthday, |
| 128 ModelType model_type, | 128 ModelType model_type, |
| 129 AttachmentService::Delegate* delegate) = 0; | 129 AttachmentService::Delegate* delegate) = 0; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace syncer | 132 } // namespace syncer |
| 133 | 133 |
| 134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ | 134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ |
| OLD | NEW |