Chromium Code Reviews| 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 { | |
|
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_ | |
| OLD | NEW |