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..5c776e38e5f8a262eed5bd9aa9da931e2904daae |
| --- /dev/null |
| +++ b/components/network_hints/renderer/renderer_navigation_hint_sender.h |
| @@ -0,0 +1,34 @@ |
| +// 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(); |
| + |
| + // Submit a navigation hint of mouse/touch events to speculatively launche |
|
falken
2016/06/23 04:10:29
launch
|
| + // 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.
|
| + void sendNavigationHint(const GURL& url, blink::WebNavigationHintType type); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(RendererNavigationHintSender); |
| +}; // class RendererNavigationHintSender |
| + |
| +} // namespace network_hints |
| + |
| +#endif // COMPONENTS_NETWORK_HINTS_RENDERER_NAVIGATION_HINT_SENDER_H_ |