Chromium Code Reviews| 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..4032ddf3c8c0f3abb8073eafb4933f3a5ee96059 | 
| --- /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 { | 
| + 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); | 
| +}; // 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.
 
 | 
| + | 
| +} // namespace network_hints | 
| + | 
| +#endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ |