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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 /** | 462 /** |
463 * @constructor | 463 * @constructor |
464 * @extends {InspectorBackendClass.Connection} | 464 * @extends {InspectorBackendClass.Connection} |
465 * @param {!Protocol.ServiceWorkerAgent} agent | 465 * @param {!Protocol.ServiceWorkerAgent} agent |
466 * @param {string} workerId | 466 * @param {string} workerId |
467 */ | 467 */ |
468 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 468 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
469 { | 469 { |
470 InspectorBackendClass.Connection.call(this); | 470 InspectorBackendClass.Connection.call(this); |
471 //FIXME: remove resourceTreeModel and others from worker targets | 471 //FIXME: remove resourceTreeModel and others from worker targets |
472 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB", "ServiceWorkerCache"]); | 472 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB"]); |
473 this._agent = agent; | 473 this._agent = agent; |
474 this._workerId = workerId; | 474 this._workerId = workerId; |
475 } | 475 } |
476 | 476 |
477 WebInspector.ServiceWorkerConnection.prototype = { | 477 WebInspector.ServiceWorkerConnection.prototype = { |
478 /** | 478 /** |
479 * @override | 479 * @override |
480 * @param {!Object} messageObject | 480 * @param {!Object} messageObject |
481 */ | 481 */ |
482 sendMessage: function(messageObject) | 482 sendMessage: function(messageObject) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 }, | 710 }, |
711 | 711 |
712 /** | 712 /** |
713 * @return {boolean} | 713 * @return {boolean} |
714 */ | 714 */ |
715 _shouldBeRemoved: function() | 715 _shouldBeRemoved: function() |
716 { | 716 { |
717 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 717 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
718 } | 718 } |
719 } | 719 } |
OLD | NEW |