| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 } | 606 } |
| 607 | 607 |
| 608 InspectorBackendClass.MainConnection.prototype = { | 608 InspectorBackendClass.MainConnection.prototype = { |
| 609 | 609 |
| 610 /** | 610 /** |
| 611 * @param {!Object} messageObject | 611 * @param {!Object} messageObject |
| 612 */ | 612 */ |
| 613 sendMessage: function(messageObject) | 613 sendMessage: function(messageObject) |
| 614 { | 614 { |
| 615 var message = JSON.stringify(messageObject); | 615 var message = JSON.stringify(messageObject); |
| 616 InspectorFrontendHost.sendMessageToBackend(message); | 616 InspectorFrontendHost.sendMessageToBrowser(message); |
| 617 }, | 617 }, |
| 618 | 618 |
| 619 /** | 619 /** |
| 620 * @param {!WebInspector.Event} event | 620 * @param {!WebInspector.Event} event |
| 621 */ | 621 */ |
| 622 _dispatchMessage: function(event) | 622 _dispatchMessage: function(event) |
| 623 { | 623 { |
| 624 this.dispatch(/** @type {!Object|string} */ (event.data)); | 624 this.dispatch(/** @type {!Object|string} */ (event.data)); |
| 625 }, | 625 }, |
| 626 | 626 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 | 922 |
| 923 } | 923 } |
| 924 | 924 |
| 925 InspectorBackendClass.Options = { | 925 InspectorBackendClass.Options = { |
| 926 dumpInspectorTimeStats: false, | 926 dumpInspectorTimeStats: false, |
| 927 dumpInspectorProtocolMessages: false, | 927 dumpInspectorProtocolMessages: false, |
| 928 suppressRequestErrors: false | 928 suppressRequestErrors: false |
| 929 } | 929 } |
| 930 | 930 |
| 931 InspectorBackend = new InspectorBackendClass(); | 931 InspectorBackend = new InspectorBackendClass(); |
| OLD | NEW |