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

Side by Side Diff: chrome/browser/sync/engine/syncapi.h

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Diff against the first part of the review. Created 10 years, 1 month 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file defines the "sync API", an interface to the syncer 5 // This file defines the "sync API", an interface to the syncer
6 // backend that exposes (1) the core functionality of maintaining a consistent 6 // backend that exposes (1) the core functionality of maintaining a consistent
7 // local snapshot of a hierarchical object set; (2) a means to transactionally 7 // local snapshot of a hierarchical object set; (2) a means to transactionally
8 // access and modify those objects; (3) a means to control client/server 8 // access and modify those objects; (3) a means to control client/server
9 // synchronization tasks, namely: pushing local object modifications to a 9 // synchronization tasks, namely: pushing local object modifications to a
10 // server, pulling nonlocal object modifications from a server to this client, 10 // server, pulling nonlocal object modifications from a server to this client,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void SetFaviconBytes(const std::vector<unsigned char>& bytes); 341 void SetFaviconBytes(const std::vector<unsigned char>& bytes);
342 342
343 // Set the app specifics (id, update url, enabled state, etc). 343 // Set the app specifics (id, update url, enabled state, etc).
344 // Should only be called if GetModelType() == APPS. 344 // Should only be called if GetModelType() == APPS.
345 void SetAppSpecifics(const sync_pb::AppSpecifics& specifics); 345 void SetAppSpecifics(const sync_pb::AppSpecifics& specifics);
346 346
347 // Set the autofill specifics (name and value). 347 // Set the autofill specifics (name and value).
348 // Should only be called if GetModelType() == AUTOFILL. 348 // Should only be called if GetModelType() == AUTOFILL.
349 void SetAutofillSpecifics(const sync_pb::AutofillSpecifics& specifics); 349 void SetAutofillSpecifics(const sync_pb::AutofillSpecifics& specifics);
350 350
351 void SetAutofillProfileSpecifics(
352 const sync_pb::AutofillProfileSpecifics& specifics);
353
351 // Set the nigori specifics. 354 // Set the nigori specifics.
352 // Should only be called if GetModelType() == NIGORI. 355 // Should only be called if GetModelType() == NIGORI.
353 void SetNigoriSpecifics(const sync_pb::NigoriSpecifics& specifics); 356 void SetNigoriSpecifics(const sync_pb::NigoriSpecifics& specifics);
354 357
355 // Set the password specifics. 358 // Set the password specifics.
356 // Should only be called if GetModelType() == PASSWORD. 359 // Should only be called if GetModelType() == PASSWORD.
357 void SetPasswordSpecifics(const sync_pb::PasswordSpecificsData& specifics); 360 void SetPasswordSpecifics(const sync_pb::PasswordSpecificsData& specifics);
358 361
359 // Set the preference specifics (name and value). 362 // Set the preference specifics (name and value).
360 // Should only be called if GetModelType() == PREFERENCE. 363 // Should only be called if GetModelType() == PREFERENCE.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 395
393 // Private helpers to set type-specific protobuf data. These don't 396 // Private helpers to set type-specific protobuf data. These don't
394 // do any checking on the previous modeltype, so they can be used 397 // do any checking on the previous modeltype, so they can be used
395 // for internal initialization (you can use them to set the modeltype). 398 // for internal initialization (you can use them to set the modeltype).
396 // Additionally, they will mark for syncing if the underlying value 399 // Additionally, they will mark for syncing if the underlying value
397 // changes. 400 // changes.
398 void PutAppSpecificsAndMarkForSyncing( 401 void PutAppSpecificsAndMarkForSyncing(
399 const sync_pb::AppSpecifics& new_value); 402 const sync_pb::AppSpecifics& new_value);
400 void PutAutofillSpecificsAndMarkForSyncing( 403 void PutAutofillSpecificsAndMarkForSyncing(
401 const sync_pb::AutofillSpecifics& new_value); 404 const sync_pb::AutofillSpecifics& new_value);
405 void PutAutofillProfileSpecificsAndMarkForSyncing(
406 const sync_pb::AutofillProfileSpecifics& new_value);
402 void PutBookmarkSpecificsAndMarkForSyncing( 407 void PutBookmarkSpecificsAndMarkForSyncing(
403 const sync_pb::BookmarkSpecifics& new_value); 408 const sync_pb::BookmarkSpecifics& new_value);
404 void PutNigoriSpecificsAndMarkForSyncing( 409 void PutNigoriSpecificsAndMarkForSyncing(
405 const sync_pb::NigoriSpecifics& new_value); 410 const sync_pb::NigoriSpecifics& new_value);
406 void PutPasswordSpecificsAndMarkForSyncing( 411 void PutPasswordSpecificsAndMarkForSyncing(
407 const sync_pb::PasswordSpecifics& new_value); 412 const sync_pb::PasswordSpecifics& new_value);
408 void PutPreferenceSpecificsAndMarkForSyncing( 413 void PutPreferenceSpecificsAndMarkForSyncing(
409 const sync_pb::PreferenceSpecifics& new_value); 414 const sync_pb::PreferenceSpecifics& new_value);
410 void PutThemeSpecificsAndMarkForSyncing( 415 void PutThemeSpecificsAndMarkForSyncing(
411 const sync_pb::ThemeSpecifics& new_value); 416 const sync_pb::ThemeSpecifics& new_value);
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 // This allows actual HttpPostProvider subclass implementations to be 963 // This allows actual HttpPostProvider subclass implementations to be
959 // reference counted, which is useful if a particular implementation uses 964 // reference counted, which is useful if a particular implementation uses
960 // multiple threads to serve network requests. 965 // multiple threads to serve network requests.
961 virtual void Destroy(HttpPostProviderInterface* http) = 0; 966 virtual void Destroy(HttpPostProviderInterface* http) = 0;
962 virtual ~HttpPostProviderFactory() { } 967 virtual ~HttpPostProviderFactory() { }
963 }; 968 };
964 969
965 } // namespace sync_api 970 } // namespace sync_api
966 971
967 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ 972 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/engine/syncapi.cc » ('j') | chrome/browser/sync/engine/syncapi.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698