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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_
6 #define COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_
7
8 #include "base/macros.h"
9 #include "url/gurl.h"
10
11 namespace blink {
12 enum class WebNavigationHintType;
13 }
14
15 namespace network_hints {
16
17 // An internal interface to the network_hints component for efficiently sending
18 // navigation hints to the browser process.
19 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.
20 public:
21 RendererNavigationHintSender();
22 ~RendererNavigationHintSender();
23
24 // Send a hint that a navigation to |url| is likely to happen.
25 void sendNavigationHint(const GURL& url, blink::WebNavigationHintType type);
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(RendererNavigationHintSender);
29 };
30
31 } // namespace network_hints
32
33 #endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698