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

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

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change ownership of PrescientNetworkingDispatcher for proper shutdown 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/renderer/renderer_preconnect.h
diff --git a/components/network_hints/renderer/renderer_preconnect.h b/components/network_hints/renderer/renderer_preconnect.h
index 39dac9312ba6fe4e4371ccb84a5456fd1b350430..f7a87f69f75b4e175017ee537530a52fb6014a09 100644
--- a/components/network_hints/renderer/renderer_preconnect.h
+++ b/components/network_hints/renderer/renderer_preconnect.h
@@ -18,6 +18,7 @@
#define COMPONENTS_NETWORK_HINTS_RENDERER_RENDERER_PRECONNECT_H_
#include "base/macros.h"
+#include "components/network_hints/common/network_hints.mojom.h"
#include "url/gurl.h"
namespace network_hints {
@@ -33,6 +34,11 @@ class RendererPreconnect {
void Preconnect(const GURL& url, bool allow_credentials);
private:
+ // Get a connected NetworkHints.
+ mojom::NetworkHintsPtr& GetNetworkHints();
Sam McNally 2016/07/20 00:03:02 Here too.
tibell 2016/07/20 00:29:35 Done.
+
+ // Don't use directly. Instead call |GetNetworkHints()|.
+ mojom::NetworkHintsPtr network_hints_;
DISALLOW_COPY_AND_ASSIGN(RendererPreconnect);
}; // class RendererPreconnect

Powered by Google App Engine
This is Rietveld 408576698