Check-in [891997b798]
Overview
Comment:ChromeOS: Updated comments in the NaCl-to-JavaScript bridge
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:891997b79828f9d708586f114d60fd14c5468e80
User & Date: rkeene on 2016-02-12 16:16:33
Other Links: manifest | tags
Context
2016-02-13
07:19
ChromeOS: Added start of PIN entry dialog check-in: 32182121df user: rkeene tags: trunk
2016-02-12
16:16
ChromeOS: Updated comments in the NaCl-to-JavaScript bridge check-in: 891997b798 user: rkeene tags: trunk
05:26
ChromeOS: Restructed the JavaScript portion of CACKey check-in: 2900ebd791 user: rkeene tags: trunk
Changes

Modified build/chrome/cackey-chrome-init.cc from [50a59eb73f] to [3317412933].

     1      1   /*
     2         - * Google's PCSC library requires us to write our module in C++ (thanks, Google)
     3         - * This library wraps the actual library, written in C.
            2  + * Google's PCSC library requires us to write our module in C++ to initialize
            3  + * it.  This component handles the initialization of our module and handles
            4  + * incoming messages, passing them either to our library (cackey-chrome) or
            5  + * to the PCSC-NaCl library from Google as appropriate.
     4      6    */
     5      7   
     6      8   #include <thread>
     7      9   #include <ppapi/cpp/instance.h>
     8     10   #include <ppapi/cpp/module.h>
     9     11   #include <ppapi/cpp/core.h>
    10     12   #include <ppapi/cpp/var.h>
................................................................................
   126    128   
   127    129   			/*
   128    130   			 * Verify that this message is destined for us
   129    131   			 */
   130    132   			if (!message->HasKey("target")) {
   131    133   				delete message;
   132    134   
          135  +				/* We don't handle this message, see if PCSC-NaCl does */
   133    136   				pcscNaClHandleMessage(messagePlain);
   134    137   
   135    138   				return;
   136    139   			}
   137    140   
   138    141   			target = message->Get("target");
   139    142   			if (target.AsString() != "cackey") {
   140    143   				delete message;
   141    144   
          145  +				/* We don't handle this message, see if PCSC-NaCl does */
   142    146   				pcscNaClHandleMessage(messagePlain);
   143    147   
   144    148   				return;
   145    149   			}
   146    150   
   147    151   			/*
   148    152   			 * Determine what we are being asked to do
   149    153   			 */
   150    154   			if (!message->HasKey("command")) {
   151    155   				delete message;
   152    156   
          157  +				/* We don't handle this message, see if PCSC-NaCl does */
   153    158   				pcscNaClHandleMessage(messagePlain);
   154    159   
   155    160   				return;
   156    161   			}
   157    162   
   158    163   			/*
   159    164   			 * Process the request in another thread