OLD | NEW |
---|---|
(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 { | |
20 public: | |
21 RendererNavigationHintSender(); | |
22 ~RendererNavigationHintSender(); | |
23 | |
24 // Submit a navigation hint of mouse/touch events to speculatively launche | |
falken
2016/06/23 04:10:29
launch
| |
25 // Service Workers. | |
falken
2016/06/23 04:10:29
I think SW or even mouse/touch events might not ne
kouhei (in TOK)
2016/06/24 00:52:34
+1
horo
2016/06/24 02:08:57
Done.
| |
26 void sendNavigationHint(const GURL& url, blink::WebNavigationHintType type); | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(RendererNavigationHintSender); | |
30 }; // class RendererNavigationHintSender | |
31 | |
32 } // namespace network_hints | |
33 | |
34 #endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ | |
OLD | NEW |