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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/attachments/attachment_id_unittest.cc ('k') | sync/api/attachments/attachment_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_metadata.h
diff --git a/sync/api/attachments/attachment_metadata.h b/sync/api/attachments/attachment_metadata.h
deleted file mode 100644
index 43343dbdfe6d4c80fe1571b4543c2a89d1fdd39f..0000000000000000000000000000000000000000
--- a/sync/api/attachments/attachment_metadata.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_METADATA_H_
-#define SYNC_API_ATTACHMENTS_ATTACHMENT_METADATA_H_
-
-#include <stddef.h>
-
-#include <vector>
-
-#include "sync/api/attachments/attachment_id.h"
-#include "sync/base/sync_export.h"
-
-namespace syncer {
-
-// This class represents immutable Attachment metadata.
-//
-// It is OK to copy and return AttachmentMetadata by value.
-class SYNC_EXPORT AttachmentMetadata {
- public:
- AttachmentMetadata(const AttachmentId& id, size_t size);
- ~AttachmentMetadata();
-
- // Default copy and assignment are welcome.
-
- // Returns this attachment's id.
- const AttachmentId& GetId() const;
-
- // Returns this attachment's size in bytes.
- size_t GetSize() const;
-
- private:
- // TODO(maniscalco): Reconcile AttachmentMetadata and
- // AttachmentId. AttachmentId knows the size of the attachment so
- // AttachmentMetadata may not be necessary (crbug/465375).
- AttachmentId id_;
- size_t size_;
-};
-
-typedef std::vector<syncer::AttachmentMetadata> AttachmentMetadataList;
-
-} // namespace syncer
-
-#endif // SYNC_API_ATTACHMENTS_ATTACHMENT_METADATA_H_
« no previous file with comments | « sync/api/attachments/attachment_id_unittest.cc ('k') | sync/api/attachments/attachment_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698