Home | History | Annotate | Download | only in pdf
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener(
      6   function(mime_type, original_url, content_url, tab_id) {
      7     // TODO(raymes): Currently this doesn't work with embedded PDFs (it
      8     // causes the entire frame to navigate). Also work out how we can
      9     // mask the URL with the URL of the PDF.
     10     chrome.tabs.update(tab_id, { url: 'pdf.html?' + content_url });
     11   }
     12 );
     13