pdf.js/extensions/chromium
Rob Wu cdadb0db4d Proof of concept using chrome.streamsPrivate API
This method captures all application/pdf streams, loads the viewer
and passes the stream to the PDF.js viewer.

This commit shows a proof of concept using the chrome.streamsPrivate API.

Advantages of new method:
- Access to the response body of the original request, thus fewer
  network requests.
- PDFs from non-GET requests (e.g. POST) are now supported.
- FTP files are also supported.

Possible improvements:
- Use declared content scripts instead of dynamic chrome.tabs.executeScript.
  This allows the extension to render the viewer in frames when the
  extension is disallowed to run executeScript for the top URL.
- Use chrome.declarativeWebRequest instead of webRequest, and replace
  background page with event page (don't forget to profile the
  difference & will the background/event page still work as intended?).
2014-01-15 23:04:15 +01:00
..
.gitignore Renaming of extensions/chrome folder to extensions/chromium, and small tweak to manifest.json description as per #3600 2013-08-21 18:11:35 +02:00
chrome.tabs.executeScriptInFrame.js Update chrome.tabs.executeScriptInFrame dependency 2014-01-13 21:21:02 +01:00
extension-router.js [CRX] Add a pageAction to omnibox showing PDF URL 2013-12-16 19:00:32 +01:00
icon16.png Recompressed PNG assets 2014-01-02 21:11:01 +01:00
icon19.png [CRX] Add a pageAction to omnibox showing PDF URL 2013-12-16 19:00:32 +01:00
icon38.png [CRX] Add a pageAction to omnibox showing PDF URL 2013-12-16 19:00:32 +01:00
icon48.png Renaming of extensions/chrome folder to extensions/chromium, and small tweak to manifest.json description as per #3600 2013-08-21 18:11:35 +02:00
icon128.png Renaming of extensions/chrome folder to extensions/chromium, and small tweak to manifest.json description as per #3600 2013-08-21 18:11:35 +02:00
manifest.json Proof of concept using chrome.streamsPrivate API 2014-01-15 23:04:15 +01:00
nothing.js [CRX] Change Viewer insertion method 2013-10-16 23:14:16 +02:00
pageActionPopup.html Added missing <html> tag to page action 2014-01-02 18:44:38 +01:00
pageActionPopup.js [CRX] Add a pageAction to omnibox showing PDF URL 2013-12-16 19:00:32 +01:00
patch-worker.js Renaming of extensions/chrome folder to extensions/chromium, and small tweak to manifest.json description as per #3600 2013-08-21 18:11:35 +02:00
pdfHandler-v2.js Proof of concept using chrome.streamsPrivate API 2014-01-15 23:04:15 +01:00
pdfHandler.html Proof of concept using chrome.streamsPrivate API 2014-01-15 23:04:15 +01:00
pdfHandler.js [CRX] split:incognito is used, so update file:-handler 2013-10-16 23:14:43 +02:00