Commit Graph

78 Commits

Author SHA1 Message Date
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
1e0abb5985 Added id argument to definition of createRecord in base Store class -- all subclasses must override this and must take the id argument. 2009-01-27 17:23:18 -08:00
Dan Mills
c8c5ae0467 fix Cache 2009-01-07 17:45:17 -08:00
Dan Mills
46e7f4e44c correctly maintain linked list pointers in cache 2009-01-07 16:43:49 -08:00
Dan Mills
ff240dd3ce add clients sync (list of clients with names and types); make it simpler to create Engine subclasses; remove the 2nd 'authenticator' parameter for Resources; resetServer is now wipeServer; consider 0 an invalid place ID (fixes bug when calculating item depths); add a Svc global exported from utils.js where commonly used services can live 2009-01-06 13:54:18 -08:00
Dan Mills
0f96797713 fix cache typo. remove wrapDepth, it will be replaces with a different method 2009-01-02 13:36:28 -08:00
Dan Mills
5e3ac9586e add a generic cache class for storing records during reconciliation. cache has 100 item limit, and is cleared before and after reconciliation so the OS can reclaim memory after GC 2008-12-30 23:52:20 -08:00
Dan Mills
380b614133 make engine keep less records in memory by limiting the outgoing queue to a maximum of 100 records, and fetch the rest from the store each time 2008-12-29 23:28:17 -08:00
Dan Mills
7d1322c001 add a method to wrap a depth-only record (just depth and guid, nothing else) 2008-12-23 11:22:29 -08:00
Dan Mills
970091b11a fix some variable references to use a local var instead of a closure 2008-12-18 01:11:03 -08:00
Dan Mills
7f2139c4af change itemExists to check for the cache, then call _itemExists, that way subclasses can override just that without having to care about the cache 2008-12-17 02:30:11 -08:00
Dan Mills
2de7c6df82 remove applyCommands from store; make itemExists not a 'private' method 2008-12-16 17:08:57 -08:00
Anant Narayanan
ea93b73081 Make Form history sync work again with new engine 2008-12-13 16:33:04 +01:00
Dan Mills
59d28a8a5c add applyImcoming to store base class 2008-12-12 13:55:26 -08:00
Dan Mills
3ef1c0d9b1 enable history sync (not working yet) 2008-12-09 12:26:14 -08:00
Dan Mills
9070a62677 remove sync cores, they are no longer used; remove sharing code from bookmarks (we can bring it back when we need it again, needs work); have the engine give hints to the store about when to wrap all items and cache them (to make subsequent calls to wrap one item fast); move serializeItem/getAllIDs into the store 2008-12-08 09:53:32 -08:00
Dan Mills
f1332902ba parentGUID -> parentid 2008-12-05 03:36:27 -08:00
Dan Mills
6151afb26d fix log4moz calls (new api), fix module imports for renamed modules 2008-11-03 15:00:38 -08:00
Dan Mills
37058a3f80 whitespace fix 2008-08-08 12:34:01 -07:00
Dan Mills
05a50f8f8b Default to not doing anything for resetGUIDs. Define an observer for subclasses to use 2008-07-24 19:29:11 -07:00
Dan Mills
d734b12ae4 add last exception to fault tolerance module 2008-07-11 18:55:42 -07:00
Dan Mills
e9d12f341f continue if there is an edit command for an item we don't have (just print a warning) 2008-06-30 23:25:51 -07:00
Dan Mills
80417871c4 merge upstream changes 2008-06-29 07:07:11 -07:00
Dan Mills
e03543007a make resetguids async 2008-06-29 07:00:53 -07:00
Anant Narayanan
089c1c0f42 General restructure for performance improvements (bug 441907, r=thunder) 2008-06-27 20:16:43 -07:00
Atul Varma
aa4a046d61 Added an additional check in stores.js to prevent a strict warning from appearing. 2008-06-26 16:27:54 -07:00
Atul Varma
ac90aaff04 Refactoring: consolidated duplicate code creating GUIDs via XPCOM gunk into a new function, Utils.makeGUID().
Note that there are some strange things re: whitespace in engines/bookmarks.js in this changeset; I literally only changed one line, though, and I'm not sure where they came from.  Maybe it was js2-mode?
2008-06-20 12:34:29 -07:00
Atul Varma
30046913d8 Refactored some file operations into a new function in Utils and out of engines.js. 2008-06-18 14:12:24 -07:00
Atul Varma
62236e45cd Replaced a bunch of boilerplate XPCOM with a call to Utils.makeTimerForCall(). 2008-06-18 12:32:20 -07:00
Atul Varma
b74958a214 Moved all tab-syncing code to modules/engines/tabsjs. 2008-06-03 14:45:53 -07:00
Atul Varma
daf3be7564 Moved all form-syncing code into modules/engines/forms.js. 2008-06-03 14:20:51 -07:00
Atul Varma
1e0a1d1e06 Moved all password-syncing code into modules/engines/passwords.js. 2008-06-03 14:08:53 -07:00
Atul Varma
e2ce660c53 Moved all history-related functionality into modules/engines/history.js. 2008-06-03 13:56:16 -07:00
Atul Varma
f365f924cf Re-removed cookie-related changes that were accidentally re-added by c1a58b24679c and/or 5a49daf87c94.
Also moved all bookmark syncing logic into modules/engines/bookmarks.js.
2008-06-03 12:38:48 -07:00
Myk Melez
690e2b800c merge 2008-06-03 11:43:07 -07:00
Myk Melez
07ba8ea83e bug 434817: sync tabs 2008-06-03 11:32:59 -07:00
Atul Varma
ada0204cac Moved all code related to the syncing of cookies--e.g. CookieStore, CookieTracker, CookieEngine, CookieSyncCore--into their own file at modules/engines/cookies.js. I'll be doing the same to the other engines shortly.
This helps with code organization--all the logic for dealing with a particular data type is now in one place--and should also make it easier to write unit/regression tests.
2008-06-03 11:11:44 -07:00
Myk Melez
2d0bcb7a9b minor typo fixes 2008-06-02 15:24:52 -07:00
Dan Mills
2daecc268e move json and crypto into remote resource 'filters', so the engine doesn't have to explicitly encode/decode anything. note--known regression: filters will not use the encryption algorithm in the status file 2008-05-30 20:43:55 -07:00
Dan Mills
29fc114d14 branch merge 2008-05-23 17:58:08 -07:00
Dan Mills
8dbb0f835c whitespace police 2008-05-23 17:50:54 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
42f471fcd3 Added unit test file for CookieStore. It has a test to make sure that only persistent cookies are wrapped, not session cookies. 2008-05-23 17:49:58 -07:00
Anant Narayanan
36482f8bef Sync form data: bug #434818, r=thunder 2008-05-22 15:36:44 -07:00
Dietrich Ayala
26b658a127 Bug 419121 - Weave chokes on microsummaries (r=thunder) 2008-05-22 11:41:05 -07:00
Justin Dolske
8df51016ac Bug 433762 – Sync stored passwords. r=thunder 2008-05-21 18:09:19 -07:00
Justin Dolske
1fb1cf3fa3 Cleanup some trivial nits with cookie (whitespace and function name). 2008-05-21 17:53:35 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
9340b3c431 Added TODO that expired cookies should be thrown out, in the unlikely event that we get one from a createCommand or editCommand. 2008-05-20 18:24:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
aea75cbd20 Made cookie-sync sync only persistent cookies, drop single-session cookies. (Needs testing.) 2008-05-20 18:14:18 -07:00
Dan Mills
e5e1d00a3f sync bookmark descriptions 2008-05-12 10:11:07 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
62da55a446 Implemented cookieStore.editCommand(). 2008-04-07 11:53:55 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
055836a4ee Semicolon was missing in cookieStore.wrap() 2008-04-04 12:09:04 -07:00