| 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 #include "sync/api/attachments/attachment_service_proxy.h" | 5 #include "sync/internal_api/public/attachments/attachment_service_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "sync/api/sync_data.h" | |
| 11 | 10 |
| 12 namespace syncer { | 11 namespace syncer { |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 // These ProxyFooCallback functions are used to invoke a callback in a specific | 15 // These ProxyFooCallback functions are used to invoke a callback in a specific |
| 17 // thread. | 16 // thread. |
| 18 | 17 |
| 19 // Invokes |callback| with |result| and |attachments| in the |task_runner| | 18 // Invokes |callback| with |result| and |attachments| in the |task_runner| |
| 20 // thread. | 19 // thread. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void AttachmentServiceProxy::Core::StoreAttachments( | 138 void AttachmentServiceProxy::Core::StoreAttachments( |
| 140 const AttachmentList& attachments, | 139 const AttachmentList& attachments, |
| 141 const StoreCallback& callback) { | 140 const StoreCallback& callback) { |
| 142 if (!wrapped_) { | 141 if (!wrapped_) { |
| 143 return; | 142 return; |
| 144 } | 143 } |
| 145 wrapped_->StoreAttachments(attachments, callback); | 144 wrapped_->StoreAttachments(attachments, callback); |
| 146 } | 145 } |
| 147 | 146 |
| 148 } // namespace syncer | 147 } // namespace syncer |
| OLD | NEW |