Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Side by Side Diff: sync/internal_api/attachments/attachment_service_proxy.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698