nsIUrlClassifierTable.idl 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. #include "nsIUrlListManager.idl"
  7. // A map that contains a string keys mapped to string values.
  8. [scriptable, uuid(fd1f8334-1859-472d-b01f-4ac6b1121ce4)]
  9. interface nsIUrlClassifierTable : nsISupports
  10. {
  11. /**
  12. * The name used to identify this table
  13. */
  14. attribute ACString name;
  15. /**
  16. * Set to false if we don't want to update this table.
  17. */
  18. attribute boolean needsUpdate;
  19. /**
  20. * In the simple case, exists just looks up the string in the
  21. * table and call the callback after the query returns with true or
  22. * false. It's possible that something more complex happens
  23. * (e.g., canonicalize the url).
  24. */
  25. void exists(in ACString key, in nsIUrlListManagerCallback cb);
  26. };