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

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

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: Same as Patch Set 5 Created 4 years, 5 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 #include "components/network_hints/renderer/renderer_navigation_hint_sender.h"
6
7 #include "components/network_hints/common/network_hints_messages.h"
8 #include "content/public/renderer/render_thread.h"
9
10 using content::RenderThread;
11
12 namespace network_hints {
13
14 RendererNavigationHintSender::RendererNavigationHintSender() {}
15
16 RendererNavigationHintSender::~RendererNavigationHintSender() {}
17
18 void RendererNavigationHintSender::sendNavigationHint(
19 const GURL& url,
20 blink::WebNavigationHintType type) {
21 if (!url.is_valid())
22 return;
23 RenderThread::Get()->Send(new NetworkHintsMsg_NavigationHint(url, type));
24 }
25
26 } // namespace network_hints
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698