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