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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js
index e04e96c95123748a22a5a206c829fcff9433460b..b82ba0a675c740c09257e626c744d96a427eff11 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js
@@ -8,14 +8,15 @@ SDK.ServiceWorkerCacheModel = class extends SDK.SDKModel {
/**
* Invariant: This model can only be constructed on a ServiceWorker target.
* @param {!SDK.Target} target
+ * @param {!Protocol.Dispatcher} dispatcher
*/
- constructor(target) {
- super(target);
+ constructor(target, dispatcher) {
+ super(target, dispatcher);
/** @type {!Map<string, !SDK.ServiceWorkerCacheModel.Cache>} */
this._caches = new Map();
- this._agent = target.cacheStorageAgent();
+ this._agent = dispatcher.cacheStorageAgent();
this._securityOriginManager = target.model(SDK.SecurityOriginManager);

Powered by Google App Engine
This is Rietveld 408576698