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

Unified Diff: sync/syncable/directory.h

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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/internal_api/write_transaction.cc ('k') | sync/syncable/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory.h
diff --git a/sync/syncable/directory.h b/sync/syncable/directory.h
index 5d26bbdbac34ab006f3c1cfa4dfb7b22918d27d4..f7dd44ebb8377d746914e2bc9a6568a4cfc41cd0 100644
--- a/sync/syncable/directory.h
+++ b/sync/syncable/directory.h
@@ -397,6 +397,13 @@ class SYNC_EXPORT Directory {
bool IsAttachmentLinked(
const sync_pb::AttachmentIdProto& attachment_id_proto) const;
+ // Given attachment id return metahandles to all entries that reference this
+ // attachment.
+ void GetMetahandlesByAttachmentId(
+ BaseTransaction* trans,
+ const sync_pb::AttachmentIdProto& attachment_id_proto,
+ Metahandles* result);
+
protected: // for friends, mainly used by Entry constructors
virtual EntryKernel* GetEntryByHandle(int64 handle);
virtual EntryKernel* GetEntryByHandle(int64 metahandle,
« no previous file with comments | « sync/internal_api/write_transaction.cc ('k') | sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698