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

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

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Same as Patch Set 5 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_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_

Powered by Google App Engine
This is Rietveld 408576698