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

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

Issue 1036743003: Add ServiceWorkerErrorMessage to ServiceWorker DevTool's protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/devtools/protocol.json » ('j') | Source/devtools/protocol.json » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 this._manager._workerRegistrationUpdated(registrations); 362 this._manager._workerRegistrationUpdated(registrations);
363 }, 363 },
364 364
365 /** 365 /**
366 * @override 366 * @override
367 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions 367 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions
368 */ 368 */
369 workerVersionUpdated: function(versions) 369 workerVersionUpdated: function(versions)
370 { 370 {
371 this._manager._workerVersionUpdated(versions); 371 this._manager._workerVersionUpdated(versions);
372 },
373
374 /**
375 * @override
376 * @param {!ServiceWorkerAgent.ServiceWorkerErrorMessage} errorMessage
377 */
378 workerErrorReported: function(errorMessage)
379 {
380 // FIXME: Implement this.
372 } 381 }
373 } 382 }
374 383
375 /** 384 /**
376 * @constructor 385 * @constructor
377 * @extends {InspectorBackendClass.Connection} 386 * @extends {InspectorBackendClass.Connection}
378 * @param {!Protocol.ServiceWorkerAgent} agent 387 * @param {!Protocol.ServiceWorkerAgent} agent
379 * @param {string} workerId 388 * @param {string} workerId
380 */ 389 */
381 WebInspector.ServiceWorkerConnection = function(agent, workerId) 390 WebInspector.ServiceWorkerConnection = function(agent, workerId)
(...skipping 15 matching lines...) Expand all
397 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); 406 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject));
398 }, 407 },
399 408
400 _close: function() 409 _close: function()
401 { 410 {
402 this.connectionClosed("worker_terminated"); 411 this.connectionClosed("worker_terminated");
403 }, 412 },
404 413
405 __proto__: InspectorBackendClass.Connection.prototype 414 __proto__: InspectorBackendClass.Connection.prototype
406 } 415 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/protocol.json » ('j') | Source/devtools/protocol.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698