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

Unified Diff: Source/devtools/front_end/bindings/ResourceUtils.js

Issue 471433004: DevTools: Split out the "workspace" and "bindings" modules from "sdk" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove marker interfaces and WI.SourceMapping Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/bindings/ResourceUtils.js
diff --git a/Source/devtools/front_end/sdk/ResourceUtils.js b/Source/devtools/front_end/bindings/ResourceUtils.js
similarity index 95%
rename from Source/devtools/front_end/sdk/ResourceUtils.js
rename to Source/devtools/front_end/bindings/ResourceUtils.js
index 11c932cf6c113a1024166d410331cb14c5c42bf0..273b6bd7785c9c00322d5921c015141fe2b09dee 100644
--- a/Source/devtools/front_end/sdk/ResourceUtils.js
+++ b/Source/devtools/front_end/bindings/ResourceUtils.js
@@ -227,18 +227,3 @@ WebInspector.linkifyRequestAsNode = function(request)
anchor.requestId = request.requestId;
return anchor;
}
-
-/**
- * @param {?string} content
- * @param {string} mimeType
- * @param {boolean} contentEncoded
- * @return {?string}
- */
-WebInspector.contentAsDataURL = function(content, mimeType, contentEncoded)
-{
- const maxDataUrlSize = 1024 * 1024;
- if (content === null || content.length > maxDataUrlSize)
- return null;
-
- return "data:" + mimeType + (contentEncoded ? ";base64," : ",") + content;
-}
« no previous file with comments | « Source/devtools/front_end/bindings/ResourceScriptMapping.js ('k') | Source/devtools/front_end/bindings/SASSSourceMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698