ไฟล์ Manifest - โมดูล Nacl

การแมปอย่างน้อย 1 รายการจากประเภท MIME ไปยังโมดูล Native Client ที่จัดการแต่ละประเภท ตัวอย่างเช่น โค้ดตัวหนาในข้อมูลโค้ดต่อไปนี้จะบันทึกโมดูล Native Client เป็นเครื่องมือจัดการเนื้อหาสำหรับประเภท MIME ของสเปรดชีต Open Office

{
  "name": "Native Client OpenOffice Spreadsheet Viewer",
  "version": "0.1",
  "description": "Open OpenOffice spreadsheets, right in your browser.",
  "nacl_modules": [{
    "path": "OpenOfficeViewer.nmf",
    "mime_type": "application/vnd.oasis.opendocument.spreadsheet"
  }]
}

ค่าของ "path" คือตำแหน่งของไฟล์ Manifest Native Client (ไฟล์ .nmf) ภายในไดเรกทอรีของส่วนขยาย ดูข้อมูลเพิ่มเติมเกี่ยวกับ Native Client และไฟล์ .nmf ได้ที่ภาพรวมทางเทคนิคของ Native Client

MIME แต่ละประเภทสามารถเชื่อมโยงกับไฟล์ .nmf ได้เพียงไฟล์เดียว แต่ไฟล์ .nmf 1 ไฟล์อาจรองรับ MIME ได้หลายประเภท ตัวอย่างต่อไปนี้แสดงส่วนขยายที่มีไฟล์ .nmf 2 ไฟล์ซึ่งรองรับ MIME 3 ประเภท

{
  "name": "Spreadsheet Viewer",
  "version": "0.1",
  "description": "Open OpenOffice and Excel spreadsheets, right in your browser.",
  "nacl_modules": [{
    "path": "OpenOfficeViewer.nmf",
    "mime_type": "application/vnd.oasis.opendocument.spreadsheet"
  },
  {
    "path": "OpenOfficeViewer.nmf",
    "mime_type": "application/vnd.oasis.opendocument.spreadsheet-template"
  },
  {
    "path": "ExcelViewer.nmf",
    "mime_type": "application/excel"
  }]
}