From 7e9c714608ab019fa2637e14afd2c7c6f84d38cc Mon Sep 17 00:00:00 2001 From: "kinuko@chromium.org" Date: Thu, 2 Feb 2012 04:18:14 +0000 Subject: Reapplying 120150 - [Sync] Add ChromeSyncNotificationBridge class to sync notifier framework for sessions use. The ChromeSyncNotificationBridge listens to notifications from chrome events that should trigger a sync notification. It is a thread-safe class that will post the notifications to the thread the SyncNotifierObserver is on, thereby allowing, for example, events on the UI thread to trigger notifications on the Sync thread. At the moment the only such event is NOTIFICATION_SYNC_REFRESH, which is only triggered by the sessions datatype. TBR=zea BUG=103469 TEST=manually going to chrome://newtab#opentabs and ensuring a sync cycle occurs. Review URL: http://codereview.chromium.org/9079002 Review URL: https://chromiumcodereview.appspot.com/9310046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120160 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome.gyp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/chrome.gyp') diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index a3fd78a..73adf6a 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -559,10 +559,14 @@ 'type': 'static_library', 'variables': { 'enable_wexit_time_destructors': 1, }, 'sources': [ + 'browser/sync/notifier/bridged_sync_notifier.h', + 'browser/sync/notifier/bridged_sync_notifier.cc', 'browser/sync/notifier/cache_invalidation_packet_handler.cc', 'browser/sync/notifier/cache_invalidation_packet_handler.h', 'browser/sync/notifier/chrome_invalidation_client.cc', 'browser/sync/notifier/chrome_invalidation_client.h', + 'browser/sync/notifier/chrome_sync_notification_bridge.h', + 'browser/sync/notifier/chrome_sync_notification_bridge.cc', 'browser/sync/notifier/chrome_system_resources.cc', 'browser/sync/notifier/chrome_system_resources.h', 'browser/sync/notifier/invalidation_notifier.h', -- cgit v1.1