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

Unified Diff: components/sync/api/attachments/attachment.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 | « components/sync/api/attachments/attachment.h ('k') | components/sync/api/attachments/attachment_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/attachments/attachment.cc
diff --git a/components/sync/api/attachments/attachment.cc b/components/sync/api/attachments/attachment.cc
deleted file mode 100644
index ed10b72b2bc096a1be776e1e2633bf9423959955..0000000000000000000000000000000000000000
--- a/components/sync/api/attachments/attachment.cc
+++ /dev/null
@@ -1,49 +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.
-
-#include "components/sync/api/attachments/attachment.h"
-
-#include "base/logging.h"
-#include "components/sync/engine/attachments/attachment_util.h"
-
-namespace syncer {
-
-Attachment::Attachment(const Attachment& other) = default;
-
-Attachment::~Attachment() {}
-
-// Static.
-Attachment Attachment::Create(
- const scoped_refptr<base::RefCountedMemory>& data) {
- uint32_t crc32c = ComputeCrc32c(data);
- return CreateFromParts(AttachmentId::Create(data->size(), crc32c), data);
-}
-
-// Static.
-Attachment Attachment::CreateFromParts(
- const AttachmentId& id,
- const scoped_refptr<base::RefCountedMemory>& data) {
- return Attachment(id, data);
-}
-
-const AttachmentId& Attachment::GetId() const {
- return id_;
-}
-
-const scoped_refptr<base::RefCountedMemory>& Attachment::GetData() const {
- return data_;
-}
-
-uint32_t Attachment::GetCrc32c() const {
- return id_.GetCrc32c();
-}
-
-Attachment::Attachment(const AttachmentId& id,
- const scoped_refptr<base::RefCountedMemory>& data)
- : id_(id), data_(data) {
- DCHECK_EQ(id.GetSize(), data->size());
- DCHECK(data.get());
-}
-
-} // namespace syncer
« no previous file with comments | « components/sync/api/attachments/attachment.h ('k') | components/sync/api/attachments/attachment_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698