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

Side by Side Diff: components/sync/driver/sync_api_component_factory.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_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 std::unique_ptr<DataTypeErrorHandler> error_handler) = 0; 111 std::unique_ptr<DataTypeErrorHandler> error_handler) = 0;
112 112
113 // Creates attachment service. 113 // Creates attachment service.
114 // Note: Should only be called from the model type thread. 114 // Note: Should only be called from the model type thread.
115 // 115 //
116 // |store_birthday| is the store birthday. Must not be empty. 116 // |store_birthday| is the store birthday. Must not be empty.
117 // 117 //
118 // |model_type| is the model type this AttachmentService will be used with. 118 // |model_type| is the model type this AttachmentService will be used with.
119 // 119 //
120 // |delegate| is optional delegate for AttachmentService to notify about 120 // |delegate| is optional delegate for AttachmentService to notify about
121 // asynchronous events (AttachmentUploaded). Pass NULL if delegate is not 121 // asynchronous events (AttachmentUploaded). Pass null if delegate is not
122 // provided. AttachmentService doesn't take ownership of delegate, the pointer 122 // provided. AttachmentService doesn't take ownership of delegate, the pointer
123 // must be valid throughout AttachmentService lifetime. 123 // must be valid throughout AttachmentService lifetime.
124 virtual std::unique_ptr<AttachmentService> CreateAttachmentService( 124 virtual std::unique_ptr<AttachmentService> CreateAttachmentService(
125 std::unique_ptr<AttachmentStoreForSync> attachment_store, 125 std::unique_ptr<AttachmentStoreForSync> attachment_store,
126 const UserShare& user_share, 126 const UserShare& user_share,
127 const std::string& store_birthday, 127 const std::string& store_birthday,
128 ModelType model_type, 128 ModelType model_type,
129 AttachmentService::Delegate* delegate) = 0; 129 AttachmentService::Delegate* delegate) = 0;
130 }; 130 };
131 131
132 } // namespace syncer 132 } // namespace syncer
133 133
134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_ 134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_API_COMPONENT_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync/driver/shared_change_processor_unittest.cc ('k') | components/sync/driver/sync_policy_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698