| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 /** | 5 /** |
| 6 * This class provides a "bridge" for communicating between the javascript and | 6 * This class provides a "bridge" for communicating between the javascript and |
| 7 * the browser. | 7 * the browser. |
| 8 * | 8 * |
| 9 * @constructor | 9 * @constructor |
| 10 */ | 10 */ |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 return true; | 615 return true; |
| 616 }; | 616 }; |
| 617 | 617 |
| 618 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { | 618 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { |
| 619 helper.removeObserver(this); | 619 helper.removeObserver(this); |
| 620 --this.observingCount_; | 620 --this.observingCount_; |
| 621 this.updatedData_[name] = data; | 621 this.updatedData_[name] = data; |
| 622 if (this.observingCount_ == 0) | 622 if (this.observingCount_ == 0) |
| 623 this.callback_(this.updatedData_); | 623 this.callback_(this.updatedData_); |
| 624 }; | 624 }; |
| OLD | NEW |