| 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 SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ | 6 #define COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
| 12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
| 13 #include "sync/api/attachments/attachment.h" | 13 #include "components/sync/api/attachments/attachment.h" |
| 14 #include "sync/base/sync_export.h" | 14 #include "components/sync/base/sync_export.h" |
| 15 #include "sync/internal_api/public/attachments/attachment_service.h" | 15 #include "components/sync/core/attachments/attachment_service.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 | 18 |
| 19 // AttachmentServiceProxy wraps an AttachmentService allowing multiple threads | 19 // AttachmentServiceProxy wraps an AttachmentService allowing multiple threads |
| 20 // to share the wrapped AttachmentService and invoke its methods in the | 20 // to share the wrapped AttachmentService and invoke its methods in the |
| 21 // appropriate thread. | 21 // appropriate thread. |
| 22 // | 22 // |
| 23 // Callbacks passed to methods on this class will be invoked in the same thread | 23 // Callbacks passed to methods on this class will be invoked in the same thread |
| 24 // from which the method was called. | 24 // from which the method was called. |
| 25 // | 25 // |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, | 97 const scoped_refptr<base::SequencedTaskRunner>& wrapped_task_runner, |
| 98 const scoped_refptr<Core>& core); | 98 const scoped_refptr<Core>& core); |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 scoped_refptr<base::SequencedTaskRunner> wrapped_task_runner_; | 101 scoped_refptr<base::SequencedTaskRunner> wrapped_task_runner_; |
| 102 scoped_refptr<Core> core_; | 102 scoped_refptr<Core> core_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace syncer | 105 } // namespace syncer |
| 106 | 106 |
| 107 #endif // SYNC_INTERNAL_API_PUBLIC_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ | 107 #endif // COMPONENTS_SYNC_CORE_ATTACHMENTS_ATTACHMENT_SERVICE_PROXY_H_ |
| OLD | NEW |