OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 "content/public/browser/push_messaging_service.h" |
| 6 |
| 7 #include "content/browser/web_contents/web_contents_impl.h" |
| 8 #include "content/public/browser/web_contents.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 bool PushMessagingService::IsWebContentsUserVisible( |
| 13 const WebContents* web_contents) { |
| 14 const WebContentsImpl* web_contents_impl = |
| 15 static_cast<const WebContentsImpl*>(web_contents); |
| 16 return web_contents_impl->should_normally_be_visible(); |
| 17 } |
| 18 |
| 19 } // namespace content |
OLD | NEW |