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