Index: components/network_hints/renderer/renderer_navigation_hint_sender.h |
diff --git a/components/network_hints/renderer/renderer_navigation_hint_sender.h b/components/network_hints/renderer/renderer_navigation_hint_sender.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf4f23ff3cd140edca40742cfcca704370f468d4 |
--- /dev/null |
+++ b/components/network_hints/renderer/renderer_navigation_hint_sender.h |
@@ -0,0 +1,33 @@ |
+// 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. |
+ |
+#ifndef COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ |
+#define COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ |
+ |
+#include "base/macros.h" |
+#include "url/gurl.h" |
+ |
+namespace blink { |
+enum class WebNavigationHintType; |
+} |
+ |
+namespace network_hints { |
+ |
+// An internal interface to the network_hints component for efficiently sending |
+// navigation hints to the browser process. |
+class RendererNavigationHintSender { |
Julia Tuttle
2016/07/18 14:44:37
I would drop the "Sender" from the name here, for
horo
2016/07/19 02:09:43
Done.
|
+ public: |
+ RendererNavigationHintSender(); |
+ ~RendererNavigationHintSender(); |
+ |
+ // Send a hint that a navigation to |url| is likely to happen. |
+ void sendNavigationHint(const GURL& url, blink::WebNavigationHintType type); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(RendererNavigationHintSender); |
+}; |
+ |
+} // namespace network_hints |
+ |
+#endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ |