[email protected] | 00b4017 | 2014-04-10 22:45:16 | [diff] [blame] | 1 | // Copyright 2014 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. |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 4 | |
[email protected] | 00b4017 | 2014-04-10 22:45:16 | [diff] [blame] | 5 | This framework was once used to implement an asynchronous request/reply |
| 6 | protocol between the chrome://sync-internals page and the sync backend thread. |
| 7 | Much of it has been removed in favor of an ad-hoc system that allows us to |
| 8 | offer better safety guarantees, and to dispatch requests to different threads. |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 9 | |
[email protected] | 00b4017 | 2014-04-10 22:45:16 | [diff] [blame] | 10 | All that remains are some WeakHandles that allow us to send JsEvents from the |
| 11 | sync backend to about:sync. The SyncInternalsUI implements JsEventHandler in |
| 12 | order to receive these events. The SyncManager implements JsBackend in order |
| 13 | to send them. The SyncJsController acts as an intermediary between them. |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 14 | |
[email protected] | 00b4017 | 2014-04-10 22:45:16 | [diff] [blame] | 15 | The old framework may still be useful to someone. Feel free to retrieve it |
| 16 | from SVN history if you feel you can make use of it. |