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

Side by Side Diff: components/sync/model_impl/attachments/attachment_service_impl.h

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
6 #define COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ 6 #define COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 22 matching lines...) Expand all
33 // 33 //
34 // |attachment_uploader| is optional. If null, attachments will never be 34 // |attachment_uploader| is optional. If null, attachments will never be
35 // uploaded to the sync server and |delegate|'s OnAttachmentUploaded will 35 // uploaded to the sync server and |delegate|'s OnAttachmentUploaded will
36 // never be invoked. 36 // never be invoked.
37 // 37 //
38 // |attachment_downloader| is optional. If null, attachments will never be 38 // |attachment_downloader| is optional. If null, attachments will never be
39 // downloaded. Only attachments in |attachment_store| will be returned from 39 // downloaded. Only attachments in |attachment_store| will be returned from
40 // GetOrDownloadAttachments. 40 // GetOrDownloadAttachments.
41 // 41 //
42 // |delegate| is optional delegate for AttachmentService to notify about 42 // |delegate| is optional delegate for AttachmentService to notify about
43 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not 43 // asynchronous events (AttachmentUploaded). Pass null if delegate is not
44 // provided. AttachmentService doesn't take ownership of delegate, the pointer 44 // provided. AttachmentService doesn't take ownership of delegate, the pointer
45 // must be valid throughout AttachmentService lifetime. 45 // must be valid throughout AttachmentService lifetime.
46 // 46 //
47 // |initial_backoff_delay| the initial delay between upload attempts. This 47 // |initial_backoff_delay| the initial delay between upload attempts. This
48 // class automatically retries failed uploads. After the first failure, it 48 // class automatically retries failed uploads. After the first failure, it
49 // will wait this amount of time until it tries again. After each failure, 49 // will wait this amount of time until it tries again. After each failure,
50 // the delay is doubled until the |max_backoff_delay| is reached. A 50 // the delay is doubled until the |max_backoff_delay| is reached. A
51 // successful upload clears the delay. 51 // successful upload clears the delay.
52 // 52 //
53 // |max_backoff_delay| the maxmium delay between upload attempts when backed 53 // |max_backoff_delay| the maxmium delay between upload attempts when backed
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Must be last data member. 113 // Must be last data member.
114 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_; 114 base::WeakPtrFactory<AttachmentServiceImpl> weak_ptr_factory_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl); 116 DISALLOW_COPY_AND_ASSIGN(AttachmentServiceImpl);
117 }; 117 };
118 118
119 } // namespace syncer 119 } // namespace syncer
120 120
121 #endif // COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_ 121 #endif // COMPONENTS_SYNC_MODEL_IMPL_ATTACHMENTS_ATTACHMENT_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/model/syncable_service.h ('k') | components/sync/model_impl/attachments/attachment_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698