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

Unified Diff: components/network_hints/renderer/renderer_dns_prefetch.h

Issue 2179693002: Revert of Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/network_hints/renderer/DEPS ('k') | components/network_hints/renderer/renderer_dns_prefetch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_hints/renderer/renderer_dns_prefetch.h
diff --git a/components/network_hints/renderer/renderer_dns_prefetch.h b/components/network_hints/renderer/renderer_dns_prefetch.h
index 307a82c28c496f3dc8cdf3108277ee4ba62b22d4..9df9e5b9e00bdca1e54cac5b72fb531d2c34d2d1 100644
--- a/components/network_hints/renderer/renderer_dns_prefetch.h
+++ b/components/network_hints/renderer/renderer_dns_prefetch.h
@@ -28,12 +28,9 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "components/network_hints/public/interfaces/network_hints.mojom.h"
#include "components/network_hints/renderer/dns_prefetch_queue.h"
namespace network_hints {
-
-class NetworkHints;
// An internal interface to the network_hints component for efficiently sending
// DNS prefetch requests to the net stack.
@@ -80,9 +77,6 @@
// This discards ALL queue entries, and map entries.
void Reset();
- // Get a connected NetworkHints.
- mojom::NetworkHints& GetNetworkHints();
-
// We use c_string_queue_ to hold lists of names supplied typically) by the
// renderer. It queues the names, at minimal cost to the renderer's thread,
// and allows this class to process them when time permits (in a later task).
@@ -107,9 +101,6 @@
int buffer_full_discard_count_;
int numeric_ip_discard_count_;
- // Don't use directly. Instead call |GetNetworkHints()|.
- mojom::NetworkHintsPtr network_hints_;
-
base::WeakPtrFactory<RendererDnsPrefetch> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RendererDnsPrefetch);
« no previous file with comments | « components/network_hints/renderer/DEPS ('k') | components/network_hints/renderer/renderer_dns_prefetch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698