Index: Source/devtools/blink/chromeServerProfile/Default/Cache/f_000059 |
diff --git a/Source/devtools/front_end/FileSystemModel.js b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000059 |
similarity index 93% |
copy from Source/devtools/front_end/FileSystemModel.js |
copy to Source/devtools/blink/chromeServerProfile/Default/Cache/f_000059 |
index 1722698030f867451d34299a5d8a6938e923cd90..f8e1cf2244d196fd7627c98a8738078b2a62b956 100644 |
--- a/Source/devtools/front_end/FileSystemModel.js |
+++ b/Source/devtools/blink/chromeServerProfile/Default/Cache/f_000059 |
@@ -30,19 +30,18 @@ |
/** |
* @constructor |
- * @extends {WebInspector.TargetAwareObject} |
- * @param {!WebInspector.Target} target |
+ * @extends {WebInspector.Object} |
*/ |
-WebInspector.FileSystemModel = function(target) |
+WebInspector.FileSystemModel = function() |
{ |
- WebInspector.TargetAwareObject.call(this, target); |
+ WebInspector.Object.call(this); |
this._fileSystemsForOrigin = {}; |
- target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.SecurityOriginAdded, this._securityOriginAdded, this); |
- target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.SecurityOriginRemoved, this._securityOriginRemoved, this); |
- this._agent = target.fileSystemAgent(); |
- this._agent.enable(); |
+ WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.SecurityOriginAdded, this._securityOriginAdded, this); |
+ WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.SecurityOriginRemoved, this._securityOriginRemoved, this); |
+ |
+ FileSystemAgent.enable(); |
this._reset(); |
} |
@@ -52,7 +51,7 @@ WebInspector.FileSystemModel.prototype = { |
{ |
for (var securityOrigin in this._fileSystemsForOrigin) |
this._removeOrigin(securityOrigin); |
- var securityOrigins = this.target().resourceTreeModel.securityOrigins(); |
+ var securityOrigins = WebInspector.resourceTreeModel.securityOrigins(); |
for (var i = 0; i < securityOrigins.length; ++i) |
this._addOrigin(securityOrigins[i]); |
}, |
@@ -122,7 +121,7 @@ WebInspector.FileSystemModel.prototype = { |
callback(errorCode, backendRootEntry); |
} |
- this._agent.requestFileSystemRoot(origin, type, innerCallback); |
+ FileSystemAgent.requestFileSystemRoot(origin, type, innerCallback); |
}, |
/** |
@@ -197,7 +196,7 @@ WebInspector.FileSystemModel.prototype = { |
callback(errorCode, backendEntries); |
} |
- this._agent.requestDirectoryContent(url, innerCallback); |
+ FileSystemAgent.requestDirectoryContent(url, innerCallback); |
}, |
/** |
@@ -245,7 +244,7 @@ WebInspector.FileSystemModel.prototype = { |
callback(errorCode, metadata); |
} |
- this._agent.requestMetadata(entry.url, innerCallback); |
+ FileSystemAgent.requestMetadata(entry.url, innerCallback); |
}, |
/** |
@@ -289,7 +288,7 @@ WebInspector.FileSystemModel.prototype = { |
callback(errorCode, content, charset); |
} |
- this._agent.requestFileContent(url, readAsText, start, end, charset, innerCallback); |
+ FileSystemAgent.requestFileContent(url, readAsText, start, end, charset, innerCallback); |
}, |
/** |
* @param {!WebInspector.FileSystemModel.Entry} entry |
@@ -333,7 +332,7 @@ WebInspector.FileSystemModel.prototype = { |
callback(errorCode); |
} |
- this._agent.deleteEntry(url, innerCallback); |
+ FileSystemAgent.deleteEntry(url, innerCallback); |
}, |
/** |
@@ -352,7 +351,7 @@ WebInspector.FileSystemModel.prototype = { |
} |
}, |
- __proto__: WebInspector.TargetAwareObject.prototype |
+ __proto__: WebInspector.Object.prototype |
} |