diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 00:44:53 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 00:44:53 +0000 |
commit | 6990e4e02b98a3d5b9469483173c54609317c763 (patch) | |
tree | 3fafe3fda2a29ec928ee0827a2ddc48af6d897f7 /chrome/common | |
parent | c164db57dbcf8374b4adc1ff6c39542e9fc5686b (diff) | |
download | chromium_src-6990e4e02b98a3d5b9469483173c54609317c763.zip chromium_src-6990e4e02b98a3d5b9469483173c54609317c763.tar.gz chromium_src-6990e4e02b98a3d5b9469483173c54609317c763.tar.bz2 |
[Sync] Add sessions API and sync plumbing for refreshing sessions data.
SessionModelAssociator now has an AttemptSessionsDataRefresh method for
triggering sync cycles to update the sessions data. Currently it has no effect (the
actual hookup to sync notifications will be added in a subsequent patch). In
addition, we automatically trigger the refresh when
chrome://newtab/#opentabs is accessed.
To support local datatype refreshes, we introduce the notion of local
notifications. Nudges originating from local notifications will result in GetUpdates
with source DATATYPE_REFRESH.
Lastly, we now no longer consider chrome:// and file:// url's for syncing.
BUG=103469
TEST=unit_tests
Review URL: http://codereview.chromium.org/8619002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_notification_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_notification_types.h b/chrome/common/chrome_notification_types.h index 90f06c3..02c625d 100644 --- a/chrome/common/chrome_notification_types.h +++ b/chrome/common/chrome_notification_types.h @@ -698,6 +698,10 @@ enum NotificationType { // The sync service is finished the configuration process. NOTIFICATION_SYNC_CONFIGURE_DONE, + // A service is requesting a sync datatype refresh for the current profile. + // The details value is a const syncable::ModelType. + NOTIFICATION_SYNC_REFRESH, + // The session service has been saved. This notification type is only sent // if there were new SessionService commands to save, and not for no-op save // operations. |