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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
391 /** | 391 /** |
392 * @constructor | 392 * @constructor |
393 * @extends {InspectorBackendClass.Connection} | 393 * @extends {InspectorBackendClass.Connection} |
394 * @param {!Protocol.ServiceWorkerAgent} agent | 394 * @param {!Protocol.ServiceWorkerAgent} agent |
395 * @param {string} workerId | 395 * @param {string} workerId |
396 */ | 396 */ |
397 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 397 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
398 { | 398 { |
399 InspectorBackendClass.Connection.call(this); | 399 InspectorBackendClass.Connection.call(this); |
400 //FIXME: remove resourceTreeModel and others from worker targets | 400 //FIXME: remove resourceTreeModel and others from worker targets |
401 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage", "Database", "Network", "IndexedDB", "ServiceWorkerCache"]); | 401 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage", "Database", "Network", "IndexedDB", "CacheStorage"]); |
pfeldman
2015/04/01 07:01:09
Hm. Not sure why it was here - probably was copied
dmurph
2015/04/02 20:59:03
What am I removing? The "CacheStorage" string? or
| |
402 this._agent = agent; | 402 this._agent = agent; |
403 this._workerId = workerId; | 403 this._workerId = workerId; |
404 } | 404 } |
405 | 405 |
406 WebInspector.ServiceWorkerConnection.prototype = { | 406 WebInspector.ServiceWorkerConnection.prototype = { |
407 /** | 407 /** |
408 * @override | 408 * @override |
409 * @param {!Object} messageObject | 409 * @param {!Object} messageObject |
410 */ | 410 */ |
411 sendMessage: function(messageObject) | 411 sendMessage: function(messageObject) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
639 }, | 639 }, |
640 | 640 |
641 /** | 641 /** |
642 * @return {boolean} | 642 * @return {boolean} |
643 */ | 643 */ |
644 _shouldBeRemoved: function() | 644 _shouldBeRemoved: function() |
645 { | 645 { |
646 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 646 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
647 } | 647 } |
648 } | 648 } |
OLD | NEW |