There are two types of history asset lists, one used for adding/modiyfing/verifying history, and the other for deleting history.
The history list used for operations other than delete has the following properties:
For example:
var history_initial = [
{ uri: "http://www.google.com/",
title: "Google",
visits: [
{ type: 1, date: 0 },
{ type: 2, date: -1 }
]
},
{ uri: "http://www.cnn.com/",
title: "CNN",
visits: [
{ type: 1, date: -1 },
{ type: 2, date: -36 }
]
},
];
The history list used for deletions looks different. It's an array of objects, each of which represents a type of history to delete. There are three different types:
For example:
var history_to_delete = [
{ uri: "http://www.cnn.com/" },
{ begin: -24,
end: -1 },
{ host: "www.google.com" }
];
History lists cannot be modified, they can only be added, deleted, and verified, using the following functions: