Changeset 45

Show
Ignore:
Timestamp:
04/12/06 17:16:34 (2 years ago)
Author:
atack2
Message:

Included parse_hosts.js in the extension and tied it into the handler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile

    r41 r45  
    55#               content/ 
    66#                       overhaul/ 
     7#                               myDump.js 
    78#                               overlays.xul 
    89#                               overhaul_headers.js 
    9 #                               overhaul_host.js 
    10 #                               myDump.js 
     10#                               parse_hosts.js 
    1111# 
    1212#               install.rdf 
     
    2020        cp overlays.xul ${OUTPUT_DIR}/content/overhaul 
    2121        cp overhaul_headers.js ${OUTPUT_DIR}/content/overhaul 
    22         cp overhaul_host.js ${OUTPUT_DIR}/content/overhaul 
     22        cp parse_hosts.js ${OUTPUT_DIR}/content/overhaul 
    2323        cp myDump.js ${OUTPUT_DIR}/content/overhaul 
    2424         
  • trunk/overhaul_headers.js

    r40 r45  
    4545// OBSERVES: http-on-examine-response 
    4646// 
    47 var httpResponseReader = {  
     47var httpResponseReader = { 
    4848        observe: function(subject,topic,data) { 
    4949                // 
     
    6060                subject = subject.QueryInterface(Components.interfaces.nsIHttpChannel); 
    6161                try     { 
    62                         var value = subject.getResponseHeader("Overhaul-chunks"); 
     62                        var hosts_header = subject.getResponseHeader("Overhaul-hosts"); 
    6363                } 
    6464                catch( e )      { 
     
    6868                 
    6969                // 
    70                 // Perform Overhaul functions 
     70                // Organize Overhaul functions 
    7171                // 
    7272                myDump("Entering Overhaul mode..."); 
    73                 // TODO Everything else. 
     73                 
     74                var hosts = parse_hosts(hosts_header); 
     75                 
     76                while(1)        { 
     77                        myDump(hosts.ipStringList.length); 
     78                } 
     79                 
    7480        } 
    7581}; 
  • trunk/overlays.xul

    r36 r45  
    33         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
    44  <script src="myDump.js" /> 
     5  <script src="parse_hosts.js" /> 
    56  <script src="overhaul_headers.js" /> 
    6   <script src="overhaul_host.js" /> 
    77</overlay>