X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fsync%2Fapi%2Fattachments%2Fattachment_store.h;h=d487f8cd1775673a6cc3cee53b788e9f730f6c35;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=b8834e0251f9da2e88e368f15151b49422c783b7;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/sync/api/attachments/attachment_store.h b/src/sync/api/attachments/attachment_store.h index b8834e0..d487f8c 100644 --- a/src/sync/api/attachments/attachment_store.h +++ b/src/sync/api/attachments/attachment_store.h @@ -25,10 +25,9 @@ class AttachmentId; // // Destroying this object does not necessarily cancel outstanding async // operations. If you need cancel like semantics, use WeakPtr in the callbacks. -class SYNC_EXPORT AttachmentStore { +class SYNC_EXPORT AttachmentStore : public base::RefCounted { public: AttachmentStore(); - virtual ~AttachmentStore(); // TODO(maniscalco): Consider udpating Read and Write methods to support // resumable transfers (bug 353292). @@ -82,6 +81,10 @@ class SYNC_EXPORT AttachmentStore { // successfully. virtual void Drop(const AttachmentIdList& ids, const DropCallback& callback) = 0; + + protected: + friend class base::RefCounted; + virtual ~AttachmentStore(); }; } // namespace syncer