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

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: 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
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(
maniscalco 2014/05/09 18:12:11 Can you please add some test cases to directory_un
pavely 2014/05/13 23:06:44 Done.
+ 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,

Powered by Google App Engine
This is Rietveld 408576698