--- /dev/null
+# $Id$
+
+CHROME_CONTENT = \
+ chrome/content/varnish-icon-red-32.gif \
+ chrome/content/varnish.xul \
+
+FILES = \
+ install.rdf \
+ chrome.manifest \
+ ${CHROME_CONTENT}
+
+all: varnish.xpi
+
+varnish.xpi: ${FILES}
+ zip $@ ${FILES}
--- /dev/null
+# $Id$
+content varnish chrome/content/
+overlay chrome://browser/content/browser.xul chrome://varnish/content/varnish.xul
--- /dev/null
+// $Id$
+
+var varnish = {
+ rebuild: function() {
+ }
+};
+
+function varnish_register()
+{
+ window.getBrowser().addProgressListener(varnish_progress_listener);
+}
+
+function varnish_unregister()
+{
+ window.getBrowser().removeProgressListener(varnish_progress_listener);
+}
+
+window.addEventListener("load", varnish_register, false);
+window.addEventListener("unload", varnish_unregister, false);
+
+var varnish_progress_listener = {
+ onLocationChange: function(webProgress, request, location) {
+ },
+
+ onProgressChange: function(webProgress, request, curSelfProgress,
+ maxSelfProgress, curTotalProgress, maxTotalProgress) {
+ },
+
+ onSecurityChange: function(webProgress, request, state) {
+ },
+
+ onStateChange: function(webProgress, request, stateFlags, status) {
+ },
+
+ onStatusChange: function(webProgress, request, status, message) {
+ },
+};
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script type="application/x-javascript" src="chrome://varnish/content/varnish.js"/>
+ <statusbar id="status-bar">
+ <statusbarpanel id="varnish-panel" insertafter="statusbar-progresspanel"/>
+ </statusbar>
+</overlay>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+ <Description about="urn:mozilla:install-manifest">
+ <em:id>firefox-extension@varnish-cache.org</em:id>
+ <em:version>1.0</em:version>
+ <em:type>2</em:type>
+
+ <em:targetApplication>
+ <Description>
+ <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+ <em:minVersion>2.0</em:minVersion>
+ <em:maxVersion>2.0.0.*</em:maxVersion>
+ </Description>
+ </em:targetApplication>
+
+ <em:name>Varnish</em:name>
+ <em:description>Displays information about a Varnish HTTP accelerator</em:description>
+ <em:creator>Dag-Erling Smørgrav</em:creator>
+ <em:homepageURL>http://www.varnish-cache.org/</em:homepageURL>
+ <em:iconURL>chrome://varnish/content/varnish-icon-red-32.gif</em:iconURL>
+ </Description>
+</RDF>