| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/observer_list_threadsafe.h" | 10 #include "base/observer_list_threadsafe.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 #include "sync/internal_api/public/syncable/model_type.h" | 13 #include "sync/internal_api/public/base/model_type.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 class SyncNotifierObserver; | 18 class SyncNotifierObserver; |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| 21 namespace browser_sync { | 21 namespace browser_sync { |
| 22 | 22 |
| 23 // A thread-safe bridge for chrome events that can trigger sync notifications. | 23 // A thread-safe bridge for chrome events that can trigger sync notifications. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 | 49 |
| 50 // Because [Add/Remove]Observer can be called from any thread, we need a | 50 // Because [Add/Remove]Observer can be called from any thread, we need a |
| 51 // thread-safe observerlist. | 51 // thread-safe observerlist. |
| 52 scoped_refptr<ObserverListThreadSafe<syncer::SyncNotifierObserver> > | 52 scoped_refptr<ObserverListThreadSafe<syncer::SyncNotifierObserver> > |
| 53 observers_; | 53 observers_; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace browser_sync | 56 } // namespace browser_sync |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ | 58 #endif // CHROME_BROWSER_SYNC_GLUE_CHROME_SYNC_NOTIFICATION_BRIDGE_H_ |
| OLD | NEW |