Package com.google.speedtracer.client.util.dom

Examples of com.google.speedtracer.client.util.dom.LocalStorage


    showNotificationIfEventStreamDoesNotStart();
  }

  private void maybeInitializeSymbolServerController(
      TabDescription tabDescription) {
    LocalStorage storage = WindowExt.getHostWindow().getLocalStorage();
    Url resourceUrl = new Url(tabDescription.getUrl());

    // We are not permitted to do file:// XHRs.
    if (Url.SCHEME_FILE.equals(resourceUrl.getScheme())) {
      return;
    }

    String symbolManifestUrl = storage.getStringItem(resourceUrl.getApplicationUrl());

    if (symbolManifestUrl == null || symbolManifestUrl.equals("")) {
      // Attempt to fetch one at a predetermined location.
      symbolManifestUrl = resourceUrl.getResourceBase() + "symbolmanifest.json";
    }
View Full Code Here


    // No-need to build the UI. UI binder does it all.
    // Only need to populate default values.
    final Url resourceUrl = new Url(tabDescription.getUrl());
    final String applicationUrl = resourceUrl.getApplicationUrl();
    appUrl.setValue(applicationUrl);
    final LocalStorage storage = WindowExt.getHostWindow().getLocalStorage();
    String previousManifestValue = storage.getStringItem(applicationUrl);
    symbolManifestUrl.setValue(previousManifestValue);

    // And wire up the save button.
    ClickEvent.addClickListener(saveButton, saveButton, new ClickListener() {
      public void onClick(ClickEvent event) {
        if (null == symbolManifestUrl.getValue()) {
          return;
        }
        storage.setStringItem(applicationUrl, symbolManifestUrl.getValue());

        // Register the SSController.
        SymbolServerService.registerSymbolServerController(resourceUrl,
            new Url(symbolManifestUrl.getValue()));
View Full Code Here

TOP

Related Classes of com.google.speedtracer.client.util.dom.LocalStorage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.