| Index: third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js
|
| index d586241f4805d4a1157c889ca3d8833f6b851b2b..8ddd2c9e82f24b48e85982113a064a5b4c7660d0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js
|
| @@ -86,3 +86,13 @@ Bindings.displayNameForURL = function(url) {
|
| var displayName = url.trimURL(parsedURL.host);
|
| return displayName === '/' ? parsedURL.host + '/' : displayName;
|
| };
|
| +
|
| +/**
|
| + * @param {?SDK.Resource} resource
|
| + * @return {?Workspace.UISourceCodeMetadata}
|
| + */
|
| +Bindings.resourceMetadata = function(resource) {
|
| + if (!resource || (typeof resource.contentSize() !== 'number' && !resource.lastModified()))
|
| + return null;
|
| + return new Workspace.UISourceCodeMetadata(resource.lastModified(), resource.contentSize());
|
| +};
|
|
|