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

Unified Diff: components/network_hints/public/interfaces/network_hints.mojom

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add untracked dependency on mojom Created 4 years, 5 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
Index: components/network_hints/public/interfaces/network_hints.mojom
diff --git a/components/network_hints/public/interfaces/network_hints.mojom b/components/network_hints/public/interfaces/network_hints.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b54307cbdf1f890bd02b8ebf3f49523f23163a9f
--- /dev/null
+++ b/components/network_hints/public/interfaces/network_hints.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 network_hints.mojom;
+
+import "url/mojo/url.mojom";
+
+[Native]
+struct LookupRequest;
+
+// These are messages sent from the renderer process to the browser process.
+interface NetworkHints {
+ // Request for a DNS prefetch of the names in the array.
+ DNSPrefetch(LookupRequest request);
+
+ // Request for preconnect to host providing resource specified by URL.
+ Preconnect(
+ url.mojom.Url url, // preconnect target url
+ bool allow_credentials, // Does connection have its credentials flag set
+ int32 count); // number of connections
+};

Powered by Google App Engine
This is Rietveld 408576698