Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: components/network_hints/renderer/renderer_navigation_hint_sender.h

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698