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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
438 /** | 438 /** |
439 * @constructor | 439 * @constructor |
440 * @extends {InspectorBackendClass.Connection} | 440 * @extends {InspectorBackendClass.Connection} |
441 * @param {!Protocol.ServiceWorkerAgent} agent | 441 * @param {!Protocol.ServiceWorkerAgent} agent |
442 * @param {string} workerId | 442 * @param {string} workerId |
443 */ | 443 */ |
444 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 444 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
445 { | 445 { |
446 InspectorBackendClass.Connection.call(this); | 446 InspectorBackendClass.Connection.call(this); |
447 //FIXME: remove resourceTreeModel and others from worker targets | 447 //FIXME: remove resourceTreeModel and others from worker targets |
448 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage", "Database", "Network", "IndexedDB", "ServiceWorkerCache"]); | 448 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage", "Database", "Network", "IndexedDB"]); |
pfeldman
2015/04/02 21:18:58
Yes, like this!
dmurph
2015/04/02 23:23:18
Done.
| |
449 this._agent = agent; | 449 this._agent = agent; |
450 this._workerId = workerId; | 450 this._workerId = workerId; |
451 } | 451 } |
452 | 452 |
453 WebInspector.ServiceWorkerConnection.prototype = { | 453 WebInspector.ServiceWorkerConnection.prototype = { |
454 /** | 454 /** |
455 * @override | 455 * @override |
456 * @param {!Object} messageObject | 456 * @param {!Object} messageObject |
457 */ | 457 */ |
458 sendMessage: function(messageObject) | 458 sendMessage: function(messageObject) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
686 }, | 686 }, |
687 | 687 |
688 /** | 688 /** |
689 * @return {boolean} | 689 * @return {boolean} |
690 */ | 690 */ |
691 _shouldBeRemoved: function() | 691 _shouldBeRemoved: function() |
692 { | 692 { |
693 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 693 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
694 } | 694 } |
695 } | 695 } |
OLD | NEW |