| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_REGISTRY_H_ | |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_REGISTRY_H_ | |
| 7 | |
| 8 #include <set> | |
| 9 | |
| 10 namespace browser_sync { | |
| 11 | |
| 12 class SyncedWindowDelegate; | |
| 13 | |
| 14 // A location to register SyncedWindowDelegates such that Android can provide | |
| 15 // pseudo-browsers for the purposes of Sync without having a dependency from | |
| 16 // sync onto Android's model of a browser. | |
| 17 class SyncedWindowDelegateRegistry { | |
| 18 public: | |
| 19 static const std::set<SyncedWindowDelegate*>& GetSyncedWindowDelegates(); | |
| 20 static void Register(SyncedWindowDelegate* delegate); | |
| 21 static void Unregister(SyncedWindowDelegate* delegate); | |
| 22 }; | |
| 23 | |
| 24 } // namespace browser_sync | |
| 25 | |
| 26 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_REGISTRY_H_ | |
| OLD | NEW |