I recall an old Braniff B-747 Captain that died enroute Honolulu to DFW while somewhere over LAX. They did not divert, but continued on to destination so as not to cause many problems for the passengers, crew and the airline. Body was held in the cockpit and his wife, who was an F/A on the flight, was not told until they landed.