| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // This contains unprivileged javascript APIs for extensions and apps.  It | 5 // This contains unprivileged javascript APIs for extensions and apps.  It | 
| 6 // can be loaded by any extension-related context, such as content scripts or | 6 // can be loaded by any extension-related context, such as content scripts or | 
| 7 // background pages. See user_script_slave.cc for script that is loaded by | 7 // background pages. See user_script_slave.cc for script that is loaded by | 
| 8 // content scripts only. | 8 // content scripts only. | 
| 9 | 9 | 
| 10   // TODO(kalman): factor requiring chrome out of here. | 10   // TODO(kalman): factor requiring chrome out of here. | 
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 377 exports.Port = Port; | 377 exports.Port = Port; | 
| 378 exports.createPort = createPort; | 378 exports.createPort = createPort; | 
| 379 exports.sendMessageImpl = sendMessageImpl; | 379 exports.sendMessageImpl = sendMessageImpl; | 
| 380 exports.sendMessageUpdateArguments = sendMessageUpdateArguments; | 380 exports.sendMessageUpdateArguments = sendMessageUpdateArguments; | 
| 381 | 381 | 
| 382 // For C++ code to call. | 382 // For C++ code to call. | 
| 383 exports.hasPort = hasPort; | 383 exports.hasPort = hasPort; | 
| 384 exports.dispatchOnConnect = dispatchOnConnect; | 384 exports.dispatchOnConnect = dispatchOnConnect; | 
| 385 exports.dispatchOnDisconnect = dispatchOnDisconnect; | 385 exports.dispatchOnDisconnect = dispatchOnDisconnect; | 
| 386 exports.dispatchOnMessage = dispatchOnMessage; | 386 exports.dispatchOnMessage = dispatchOnMessage; | 
| OLD | NEW | 
|---|