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

Side by Side Diff: chrome/browser/sync/engine/syncapi_stub.cc

Issue 165257: Build browser/sync files by default using a stubbed-out syncapi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifdef CHROME_PERSONALIZATION
6
7 #include "base/logging.h"
8 #include "chrome/browser/sync/engine/syncapi.h"
9
10 namespace sync_api {
11
12 struct BaseNode::BaseNodeInternal {
13 };
14
15 struct UserShare {
16 };
17
18 class SyncInternal {
19 DISALLOW_COPY_AND_ASSIGN(SyncInternal);
20 };
21
22 // BaseNode.
23 BaseNode::BaseNode() : data_(NULL) {}
24 BaseNode::~BaseNode() {}
25 int64 BaseNode::GetParentId() const {
26 NOTIMPLEMENTED();
27 return 0;
28 }
29
30 int64 BaseNode::GetId() const {
31 NOTIMPLEMENTED();
32 return 0;
33 }
34
35 bool BaseNode::GetIsFolder() const {
36 NOTIMPLEMENTED();
37 return false;
38 }
39
40 const sync_char16* BaseNode::GetTitle() const {
41 NOTIMPLEMENTED();
42 return NULL;
43 }
44
45 const sync_char16* BaseNode::GetURL() const {
46 NOTIMPLEMENTED();
47 return NULL;
48 }
49
50 const int64* BaseNode::GetChildIds(size_t* child_count) const {
51 NOTIMPLEMENTED();
52 return NULL;
53 }
54
55 int64 BaseNode::GetPredecessorId() const {
56 NOTIMPLEMENTED();
57 return 0;
58 }
59
60 int64 BaseNode::GetSuccessorId() const {
61 NOTIMPLEMENTED();
62 return 0;
63 }
64
65 int64 BaseNode::GetFirstChildId() const {
66 NOTIMPLEMENTED();
67 return 0;
68 }
69
70 const unsigned char* BaseNode::GetFaviconBytes(size_t* size_in_bytes) {
71 NOTIMPLEMENTED();
72 return NULL;
73 }
74
75 int64 BaseNode::GetExternalId() const {
76 NOTIMPLEMENTED();
77 return 0;
78 }
79
80
81 ////////////////////////////////////
82 // WriteNode member definitions
83 void WriteNode::SetIsFolder(bool folder) {
84 NOTIMPLEMENTED();
85 }
86
87 void WriteNode::SetTitle(const sync_char16* title) {
88 NOTIMPLEMENTED();
89 }
90
91 void WriteNode::SetURL(const sync_char16* url) {
92 NOTIMPLEMENTED();
93 }
94
95 void WriteNode::SetExternalId(int64 id) {
96 NOTIMPLEMENTED();
97 }
98
99 WriteNode::WriteNode(WriteTransaction* transaction)
100 : entry_(NULL), transaction_(NULL) {
101 NOTIMPLEMENTED();
102 }
103
104 WriteNode::~WriteNode() {
105 NOTIMPLEMENTED();
106 }
107
108 bool WriteNode::InitByIdLookup(int64 id) {
109 NOTIMPLEMENTED();
110 return false;
111 }
112
113 bool WriteNode::InitByCreation(const BaseNode& parent,
114 const BaseNode* predecessor) {
115 NOTIMPLEMENTED();
116 return false;
117 }
118
119 bool WriteNode::SetPosition(const BaseNode& new_parent,
120 const BaseNode* predecessor) {
121 NOTIMPLEMENTED();
122 return false;
123 }
124
125 const syncable::Entry* WriteNode::GetEntry() const {
126 NOTIMPLEMENTED();
127 return NULL;
128 }
129
130 const BaseTransaction* WriteNode::GetTransaction() const {
131 NOTIMPLEMENTED();
132 return NULL;
133 }
134
135 void WriteNode::Remove() {
136 NOTIMPLEMENTED();
137 }
138
139 void WriteNode::PutPredecessor(const BaseNode* predecessor) {
140 NOTIMPLEMENTED();
141 }
142
143 void WriteNode::SetFaviconBytes(const unsigned char* bytes,
144 size_t size_in_bytes) {
145 NOTIMPLEMENTED();
146 }
147
148 void WriteNode::MarkForSyncing() {
149 NOTIMPLEMENTED();
150 }
151
152 //////////////////////////////////////////////////////////////////////////
153 // ReadNode member definitions
154 ReadNode::ReadNode(const BaseTransaction* transaction)
155 : entry_(NULL), transaction_(NULL) {
156 NOTIMPLEMENTED();
157 }
158
159 ReadNode::~ReadNode() {
160 NOTIMPLEMENTED();
161 }
162
163 void ReadNode::InitByRootLookup() {
164 NOTIMPLEMENTED();
165 }
166
167 bool ReadNode::InitByIdLookup(int64 id) {
168 NOTIMPLEMENTED();
169 return false;
170 }
171
172 const syncable::Entry* ReadNode::GetEntry() const {
173 NOTIMPLEMENTED();
174 return NULL;
175 }
176
177 const BaseTransaction* ReadNode::GetTransaction() const {
178 NOTIMPLEMENTED();
179 return NULL;
180 }
181
182 bool ReadNode::InitByTagLookup(const sync_char16* tag) {
183 NOTIMPLEMENTED();
184 return false;
185 }
186
187 //////////////////////////////////////////////////////////////////////////
188 // ReadTransaction member definitions
189 ReadTransaction::ReadTransaction(UserShare* share) : BaseTransaction(NULL),
190 transaction_(NULL) {
191 NOTIMPLEMENTED();
192 }
193
194 ReadTransaction::~ReadTransaction() {
195 NOTIMPLEMENTED();
196 }
197
198 syncable::BaseTransaction* ReadTransaction::GetWrappedTrans() const {
199 NOTIMPLEMENTED();
200 return NULL;
201 }
202
203 //////////////////////////////////////////////////////////////////////////
204 // WriteTransaction member definitions
205 WriteTransaction::WriteTransaction(UserShare* share) : BaseTransaction(NULL),
206 transaction_(NULL) {
207 NOTIMPLEMENTED();
208 }
209
210 WriteTransaction::~WriteTransaction() {
211 NOTIMPLEMENTED();
212 }
213
214 syncable::BaseTransaction* WriteTransaction::GetWrappedTrans() const {
215 NOTIMPLEMENTED();
216 return NULL;
217 }
218
219 // SyncManager
220
221 SyncManager::SyncManager() {
222 NOTIMPLEMENTED();
223 }
224
225 bool SyncManager::Init(const sync_char16* database_location,
226 const char* sync_server_and_path,
227 int sync_server_port,
228 const char* gaia_service_id,
229 const char* gaia_source,
230 bool use_ssl,
231 HttpPostProviderFactory* post_factory,
232 HttpPostProviderFactory* auth_post_factory,
233 ModelSafeWorkerInterface* model_safe_worker,
234 bool attempt_last_user_authentication,
235 const char* user_agent) {
236 NOTIMPLEMENTED();
237 return false;
238 }
239
240 void SyncManager::Authenticate(const char* username, const char* password) {
241 NOTIMPLEMENTED();
242 }
243
244 const char* SyncManager::GetAuthenticatedUsername() {
245 NOTIMPLEMENTED();
246 return NULL;
247 }
248
249 SyncManager::~SyncManager() {
250 NOTIMPLEMENTED();
251 }
252
253 void SyncManager::SetObserver(Observer* observer) {
254 NOTIMPLEMENTED();
255 }
256
257 void SyncManager::RemoveObserver() {
258 NOTIMPLEMENTED();
259 }
260
261 void SyncManager::Shutdown() {
262 NOTIMPLEMENTED();
263 }
264
265 SyncManager::Status::Summary SyncManager::GetStatusSummary() const {
266 NOTIMPLEMENTED();
267 return SyncManager::Status::INVALID;
268 }
269
270 SyncManager::Status SyncManager::GetDetailedStatus() const {
271 NOTIMPLEMENTED();
272 return SyncManager::Status();
273 }
274
275 SyncManager::SyncInternal* SyncManager::GetImpl() const {
276 NOTIMPLEMENTED();
277 return NULL;
278 }
279
280 void SyncManager::SaveChanges() {
281 NOTIMPLEMENTED();
282 }
283
284 void SyncManager::SetupForTestMode(const sync_char16* test_username) {
285 NOTIMPLEMENTED();
286 }
287
288 //////////////////////////////////////////////////////////////////////////
289 // BaseTransaction member definitions
290 BaseTransaction::BaseTransaction(UserShare* share) : lookup_(NULL) {
291 NOTIMPLEMENTED();
292 }
293 BaseTransaction::~BaseTransaction() {
294 NOTIMPLEMENTED();
295 }
296
297 UserShare* SyncManager::GetUserShare() const {
298 NOTIMPLEMENTED();
299 return NULL;
300 }
301
302 } // namespace sync_api
303
304 #endif // CHROME_PERSONALIZATION
305
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698