Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js

Issue 2249663003: Revert of [DevTools] Rename entities in js_protocol, remove deprecated ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 this._versionId = versionId; 432 this._versionId = versionId;
433 var parsedURL = url.asParsedURL(); 433 var parsedURL = url.asParsedURL();
434 this._name = parsedURL ? parsedURL.lastPathComponentWithFragment() : "#" + (++WebInspector.ServiceWorker._lastAnonymousTargetId); 434 this._name = parsedURL ? parsedURL.lastPathComponentWithFragment() : "#" + (++WebInspector.ServiceWorker._lastAnonymousTargetId);
435 this._scope = parsedURL.host + parsedURL.folderPathComponents; 435 this._scope = parsedURL.host + parsedURL.folderPathComponents;
436 436
437 this._manager._workers.set(workerId, this); 437 this._manager._workers.set(workerId, this);
438 var capabilities = WebInspector.Target.Capability.Network | WebInspector.Tar get.Capability.Worker; 438 var capabilities = WebInspector.Target.Capability.Network | WebInspector.Tar get.Capability.Worker;
439 this._target = WebInspector.targetManager.createTarget(this._name, capabilit ies, this._connection, manager.target()); 439 this._target = WebInspector.targetManager.createTarget(this._name, capabilit ies, this._connection, manager.target());
440 this._target[WebInspector.ServiceWorker.Symbol] = this; 440 this._target[WebInspector.ServiceWorker.Symbol] = this;
441 this._manager.dispatchEventToListeners(WebInspector.ServiceWorkerManager.Eve nts.WorkersUpdated); 441 this._manager.dispatchEventToListeners(WebInspector.ServiceWorkerManager.Eve nts.WorkersUpdated);
442 this._target.runtimeAgent().runIfWaitingForDebugger(); 442 this._target.runtimeAgent().run();
443 } 443 }
444 444
445 WebInspector.ServiceWorker.Symbol = Symbol("serviceWorker"); 445 WebInspector.ServiceWorker.Symbol = Symbol("serviceWorker");
446 446
447 WebInspector.ServiceWorker._lastAnonymousTargetId = 0; 447 WebInspector.ServiceWorker._lastAnonymousTargetId = 0;
448 448
449 WebInspector.ServiceWorker.prototype = { 449 WebInspector.ServiceWorker.prototype = {
450 /** 450 /**
451 * @return {string} 451 * @return {string}
452 */ 452 */
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 { 884 {
885 return this._isRedundant() && (!this.errors.length || this._deleting); 885 return this._isRedundant() && (!this.errors.length || this._deleting);
886 }, 886 },
887 887
888 clearErrors: function() 888 clearErrors: function()
889 { 889 {
890 this._fingerprint = Symbol("fingerprint"); 890 this._fingerprint = Symbol("fingerprint");
891 this.errors = []; 891 this.errors = [];
892 } 892 }
893 } 893 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698