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

Unified Diff: sync/api/attachments/attachment_uploader.h

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 side-by-side diff with in-line comments
Download patch
Index: sync/api/attachments/attachment_uploader.h
diff --git a/sync/api/attachments/attachment_uploader.h b/sync/api/attachments/attachment_uploader.h
deleted file mode 100644
index 4774451d53faeebbffa313bed821f101261e443f..0000000000000000000000000000000000000000
--- a/sync/api/attachments/attachment_uploader.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
-#define SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "sync/api/attachments/attachment.h"
-#include "sync/base/sync_export.h"
-
-namespace syncer {
-
-// AttachmentUploader is responsible for uploading attachments to the server.
-class SYNC_EXPORT AttachmentUploader {
- public:
- // The result of an UploadAttachment operation.
- enum UploadResult {
- UPLOAD_SUCCESS, // No error, attachment was uploaded
- // successfully.
- UPLOAD_UNSPECIFIED_ERROR, // An unspecified error occurred.
- };
-
- typedef base::Callback<void(const UploadResult&, const AttachmentId&)>
- UploadCallback;
-
- AttachmentUploader();
- virtual ~AttachmentUploader();
-
- // Upload |attachment| and invoke |callback| when done.
- //
- // |callback| will be invoked when the operation has completed (successfully
- // or otherwise).
- //
- // |callback| will receive an UploadResult code and the AttachmentId of the
- // newly uploaded attachment.
- virtual void UploadAttachment(const Attachment& attachment,
- const UploadCallback& callback) = 0;
-};
-
-} // namespace syncer
-
-#endif // SYNC_API_ATTACHMENTS_ATTACHMENT_UPLOADER_H_
« no previous file with comments | « sync/api/attachments/attachment_service_proxy_unittest.cc ('k') | sync/api/attachments/attachment_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698