visitedlink.mojom 1.1 KB

123456789101112131415161718192021222324
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module visitedlink.mojom;
  5. import "mojo/public/mojom/base/shared_memory.mojom";
  6. interface VisitedLinkNotificationSink {
  7. // Notification that the visited link database has been replaced. It has one
  8. // SharedMemoryHandle argument consisting of the table handle.
  9. UpdateVisitedLinks(mojo_base.mojom.ReadOnlySharedMemoryRegion table_region);
  10. // Notification that one or more links have been added and the link coloring
  11. // state for the given hashes must be re-calculated.
  12. AddVisitedLinks(array<uint64> link_hashes);
  13. // Notification that one or more history items have been deleted, which at
  14. // this point means that all link coloring state must be re-calculated.
  15. // |invalidate_cached_hashes| is used to inform renderer process to invalidate
  16. // cached visited links hashes. The flag is needed because the salt will
  17. // change after loading the visitedlink table from the database file.
  18. ResetVisitedLinks(bool invalidate_cached_hashes);
  19. };