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 // 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 }; // class RendererNavigationHintSender | |
kinuko
2016/06/24 07:40:47
nit: this end class comment probably not necessary
horo
2016/06/24 08:26:02
Done.
| |
30 | |
31 } // namespace network_hints | |
32 | |
33 #endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ | |
OLD | NEW |