Searched defs:attachment_id (Results 1 - 14 of 14) sorted by relevance

/external/chromium_org/sync/internal_api/attachments/
H A Dfake_attachment_downloader.cc20 const AttachmentId& attachment_id,
28 new Attachment(Attachment::CreateWithId(attachment_id, data)));
19 DownloadAttachment( const AttachmentId& attachment_id, const DownloadCallback& callback) argument
H A Dfake_attachment_downloader_unittest.cc53 AttachmentId attachment_id = AttachmentId::Create(); local
54 downloader()->DownloadAttachment(attachment_id, download_callback());
H A Dattachment_downloader_impl.cc20 DownloadState(const AttachmentId& attachment_id,
23 AttachmentId attachment_id; member in struct:syncer::AttachmentDownloaderImpl::DownloadState
33 const AttachmentId& attachment_id,
35 : attachment_id(attachment_id), attachment_url(attachment_url) {
62 const AttachmentId& attachment_id,
67 sync_service_url_, attachment_id).spec();
74 new DownloadState(attachment_id, url));
79 DCHECK(download_state->attachment_id == attachment_id);
32 DownloadState( const AttachmentId& attachment_id, const AttachmentUrl& attachment_url) argument
61 DownloadAttachment( const AttachmentId& attachment_id, const DownloadCallback& callback) argument
[all...]
H A Dattachment_downloader_impl_unittest.cc161 void DownloadDone(const AttachmentId& attachment_id,
165 void VerifyDownloadResult(const AttachmentId& attachment_id,
223 const AttachmentId& attachment_id,
226 download_results_.insert(std::make_pair(attachment_id, result));
231 EXPECT_EQ(attachment_id, attachment->GetId());
243 const AttachmentId& attachment_id,
245 ResultsMap::const_iterator iter = download_results_.find(attachment_id);
222 DownloadDone( const AttachmentId& attachment_id, const AttachmentDownloader::DownloadResult& result, scoped_ptr<Attachment> attachment) argument
242 VerifyDownloadResult( const AttachmentId& attachment_id, const AttachmentDownloader::DownloadResult& result) argument
H A Dattachment_service_impl.cc40 void AddUnavailableAttachmentId(const AttachmentId& attachment_id);
90 const AttachmentId& attachment_id) {
92 DCHECK(unavailable_attachments_.find(attachment_id) ==
94 unavailable_attachments_.insert(attachment_id);
95 DCHECK(in_progress_attachments_.find(attachment_id) !=
97 in_progress_attachments_.erase(attachment_id);
236 const AttachmentId& attachment_id) {
240 upload_task_queue_->MarkAsSucceeded(attachment_id);
242 delegate_->OnAttachmentUploaded(attachment_id);
246 upload_task_queue_->MarkAsFailed(attachment_id);
89 AddUnavailableAttachmentId( const AttachmentId& attachment_id) argument
234 UploadDone( const AttachmentUploader::UploadResult& result, const AttachmentId& attachment_id) argument
256 DownloadDone( const scoped_refptr<GetOrDownloadState>& state, const AttachmentId& attachment_id, const AttachmentDownloader::DownloadResult& result, scoped_ptr<Attachment> attachment) argument
272 BeginUpload(const AttachmentId& attachment_id) argument
[all...]
H A Dattachment_uploader_impl.cc84 const AttachmentId& attachment_id);
160 AttachmentId attachment_id = attachment_.GetId(); local
176 StopAndReportResult(result, attachment_id);
237 const AttachmentId& attachment_id) {
244 FROM_HERE, base::Bind(*iter, result, attachment_id));
250 attachment_id.GetProto().unique_id()));
280 const AttachmentId attachment_id = attachment.GetId(); local
281 const std::string unique_id = attachment_id.GetProto().unique_id();
298 const GURL url = GetURLForAttachmentId(sync_service_url_, attachment_id);
314 const AttachmentId& attachment_id) {
235 StopAndReportResult( const UploadResult& result, const AttachmentId& attachment_id) argument
312 GetURLForAttachmentId( const GURL& sync_service_url, const AttachmentId& attachment_id) argument
[all...]
H A Dattachment_uploader_impl_unittest.cc199 const AttachmentId& attachment_id);
337 const AttachmentId& attachment_id) {
340 attachment_ids_.push_back(attachment_id);
335 UploadDone( const AttachmentUploader::UploadResult& result, const AttachmentId& attachment_id) argument
/external/chromium_org/sync/internal_api/
H A Dwrite_transaction.cc85 const AttachmentId& attachment_id) {
88 transaction_, attachment_id.GetProto(), &handles);
93 entry.MarkAttachmentAsOnServer(attachment_id.GetProto());
84 UpdateEntriesMarkAttachmentAsOnServer( const AttachmentId& attachment_id) argument
/external/chromium_org/sync/syncable/
H A Dmutable_entry.cc250 const sync_pb::AttachmentIdProto& attachment_id) {
252 DCHECK(!attachment_id.unique_id().empty());
259 if (record->id().unique_id() != attachment_id.unique_id())
249 MarkAttachmentAsOnServer( const sync_pb::AttachmentIdProto& attachment_id) argument
H A Ddirectory_unittest.cc1631 // Verify that UpdateAttachmentId updates attachment_id and is_on_server flag.
1724 AttachmentId attachment_id = AttachmentId::Create(); local
1725 sync_pb::AttachmentIdProto attachment_id_proto = attachment_id.GetProto();
1743 ASSERT_EQ(attachment_id, *id_set.begin());
/external/chromium_org/components/sync_driver/
H A Dgeneric_change_processor_unittest.cc14 #include "sync/api/attachments/attachment_id.h"
442 syncer::AttachmentId attachment_id = local
445 change_processor()->OnAttachmentUploaded(attachment_id);
H A Dgeneric_change_processor.cc42 const syncer::AttachmentId& attachment_id) {
44 *record.mutable_id() = attachment_id.GetProto();
230 const syncer::AttachmentId& attachment_id) {
232 trans.UpdateEntriesMarkAttachmentAsOnServer(attachment_id);
41 AttachmentIdToRecord( const syncer::AttachmentId& attachment_id) argument
229 OnAttachmentUploaded( const syncer::AttachmentId& attachment_id) argument
/external/chromium_org/sync/api/
H A Dsync_data.cc22 const syncer::AttachmentId& attachment_id) {
23 return attachment_id.GetProto();
183 std::transform(entity.attachment_id().begin(),
184 entity.attachment_id().end(),
21 IdToProto( const syncer::AttachmentId& attachment_id) argument
/external/chromium_org/sync/engine/
H A Ddirectory_update_handler_unittest.cc429 sync_pb::AttachmentIdProto* attachment_id = e1->add_attachment_id(); local
430 *attachment_id = CreateAttachmentIdProto();
453 ASSERT_EQ(attachment_id->SerializeAsString(),

Completed in 418 milliseconds