code: function(type)
      {
          switch (type) {
              case this.Document:
                  return "document";
              case this.Stylesheet:
                  return "stylesheet";
              case this.Image:
                  return "image";
              case this.Font:
                  return "font";
              case this.Script:
                  return "script";
              case this.XHR:
                  return "xhr";
              case this.WebSocket:
                  return "websocket";
              case this.Other:
              default:
                  return "other";
          }
      }
docs: Returns locale-independent string identifier of resource type (primarily for use in extension API). The IDs need to be kept in sync with webInspector.resoureces.Types object in ExtensionAPI.js.