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 #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 |
OLD | NEW |