| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * Channel to the background script. | 6 * Channel to the background script. |
| 7 */ | 7 */ |
| 8 function Channel() { | 8 function Channel() { |
| 9 this.messageCallbacks_ = {}; | 9 this.messageCallbacks_ = {}; |
| 10 this.internalRequestCallbacks_ = {}; | 10 this.internalRequestCallbacks_ = {}; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 } | 112 } |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 /** | 115 /** |
| 116 * Class factory. | 116 * Class factory. |
| 117 * @return {Channel} | 117 * @return {Channel} |
| 118 */ | 118 */ |
| 119 Channel.create = function() { | 119 Channel.create = function() { |
| 120 return new Channel(); | 120 return new Channel(); |
| 121 }; | 121 }; |
| OLD | NEW |