2 * (C) Copyright 2010 John J. Foerch
4 * Use, modification, and distribution are subject to the terms specified in the
9 * Be sparing about adding service variables to this file. Only add
10 * services for which it makes sense to keep a global reference because
11 * they are used in numerous separate places in Conkeror. In most cases,
12 * a simple `let' form around the function or two that use a service is
13 * best, because it keeps all the code in one place.
16 const file_locator_service = Cc["@mozilla.org/file/directory_service;1"]
17 .getService(Ci.nsIProperties);
19 const nav_bookmarks_service = Cc["@mozilla.org/browser/nav-bookmarks-service;1"]
20 .getService(Ci.nsINavBookmarksService);
22 const nav_history_service = Cc["@mozilla.org/browser/nav-history-service;1"]
23 .getService(Ci.nsINavHistoryService);
25 const observer_service = Cc["@mozilla.org/observer-service;1"]
26 .getService(Ci.nsIObserverService);