Chromium Code Reviews| 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, |