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

Side by Side Diff: sync/api/attachments/attachment_uploader.h

Issue 394293003: Do not update AttachmentIds after uploading attachments to sync server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 #ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_ 5 #ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_ 6 #define SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 UploadCallback; 27 UploadCallback;
28 28
29 AttachmentUploader(); 29 AttachmentUploader();
30 virtual ~AttachmentUploader(); 30 virtual ~AttachmentUploader();
31 31
32 // Upload |attachment| and invoke |callback| when done. 32 // Upload |attachment| and invoke |callback| when done.
33 // 33 //
34 // |callback| will be invoked when the operation has completed (successfully 34 // |callback| will be invoked when the operation has completed (successfully
35 // or otherwise). 35 // or otherwise).
36 // 36 //
37 // |callback| will receive an UploadResult code and an updated AttachmentId 37 // |callback| will receive an UploadResult code and the AttachmentId of the
38 // containing the server address of the newly uploaded attachment. 38 // newly uploaded attachment.
39 virtual void UploadAttachment(const Attachment& attachment, 39 virtual void UploadAttachment(const Attachment& attachment,
40 const UploadCallback& callback) = 0; 40 const UploadCallback& callback) = 0;
41 }; 41 };
42 42
43 } // namespace syncer 43 } // namespace syncer
44 44
45 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_ 45 #endif // SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor.cc ('k') | sync/internal_api/attachments/attachment_uploader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698