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

Side by Side Diff: components/sync/core/write_node.h

Issue 2260953002: Supplimentary identifier for passwords specific (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CORE_WRITE_NODE_H_ 5 #ifndef COMPONENTS_SYNC_CORE_WRITE_NODE_H_
6 #define COMPONENTS_SYNC_CORE_WRITE_NODE_H_ 6 #define COMPONENTS_SYNC_CORE_WRITE_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // types are ported to the new sync service API. 129 // types are ported to the new sync service API.
130 130
131 // Set the nigori specifics. 131 // Set the nigori specifics.
132 // Should only be called if GetModelType() == NIGORI. 132 // Should only be called if GetModelType() == NIGORI.
133 void SetNigoriSpecifics(const sync_pb::NigoriSpecifics& specifics); 133 void SetNigoriSpecifics(const sync_pb::NigoriSpecifics& specifics);
134 134
135 // Set the password specifics. 135 // Set the password specifics.
136 // Should only be called if GetModelType() == PASSWORD. 136 // Should only be called if GetModelType() == PASSWORD.
137 void SetPasswordSpecifics(const sync_pb::PasswordSpecificsData& specifics); 137 void SetPasswordSpecifics(const sync_pb::PasswordSpecificsData& specifics);
138 138
139 // Set the password specifics metadata.
140 // Should only be called if GetModelType() == PASSWORD.
141 void SetPasswordSpecificsMetadata(
142 const sync_pb::PasswordSpecificsMetadata& specifics);
143
139 // Set the typed_url specifics (url, title, typed_count, etc). 144 // Set the typed_url specifics (url, title, typed_count, etc).
140 // Should only be called if GetModelType() == TYPED_URLS. 145 // Should only be called if GetModelType() == TYPED_URLS.
141 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics); 146 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics);
142 147
143 // Set the attachment metadata. 148 // Set the attachment metadata.
144 void SetAttachmentMetadata( 149 void SetAttachmentMetadata(
145 const sync_pb::AttachmentMetadata& attachment_metadata); 150 const sync_pb::AttachmentMetadata& attachment_metadata);
146 151
147 // Implementation of BaseNode's abstract virtual accessors. 152 // Implementation of BaseNode's abstract virtual accessors.
148 const syncable::Entry* GetEntry() const override; 153 const syncable::Entry* GetEntry() const override;
(...skipping 24 matching lines...) Expand all
173 178
174 // The sync API transaction that is the parent of this node. 179 // The sync API transaction that is the parent of this node.
175 WriteTransaction* transaction_; 180 WriteTransaction* transaction_;
176 181
177 DISALLOW_COPY_AND_ASSIGN(WriteNode); 182 DISALLOW_COPY_AND_ASSIGN(WriteNode);
178 }; 183 };
179 184
180 } // namespace syncer 185 } // namespace syncer
181 186
182 #endif // COMPONENTS_SYNC_CORE_WRITE_NODE_H_ 187 #endif // COMPONENTS_SYNC_CORE_WRITE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698