Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: components/visitedlink/common/visitedlink.mojom

Issue 2048503002: Convert visitedlink to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: clang format Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/visitedlink/common/OWNERS ('k') | components/visitedlink/common/visitedlink_message_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/visitedlink/common/visitedlink.mojom
diff --git a/components/visitedlink/common/visitedlink.mojom b/components/visitedlink/common/visitedlink.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..9a8ce865de4632e87e40aaa3991efc2064654340
--- /dev/null
+++ b/components/visitedlink/common/visitedlink.mojom
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module visitedlink.mojom;
+
+interface VisitedLinkNotificationSink {
+ // Notification that the visited link database has been replaced. It has one
+ // SharedMemoryHandle argument consisting of the table handle.
+ UpdateVisitedLinks(handle<shared_buffer> table_handle);
+
+ // Notification that one or more links have been added and the link coloring
+ // state for the given hashes must be re-calculated.
+ AddVisitedLinks(array<uint64> link_hashes);
+
+ // Notification that one or more history items have been deleted, which at
+ // this point means that all link coloring state must be re-calculated.
+ // |invalidate_cached_hashes| is used to inform renderer process to invalidate
+ // cached visited links hashes. The flag is needed because the salt will
+ // change after loading the visitedlink table from the database file.
+ ResetVisitedLinks(bool invalidate_cached_hashes);
+};
« no previous file with comments | « components/visitedlink/common/OWNERS ('k') | components/visitedlink/common/visitedlink_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698