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

Side by Side Diff: content/public/browser/push_messaging_service.cc

Issue 866443003: Push API: Don't require notification if tab is visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ycm_outdir
Patch Set: Added push_messaging_service.cc Created 5 years, 11 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
« no previous file with comments | « content/public/browser/push_messaging_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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(
Michael van Ouwerkerk 2015/01/21 19:16:34 Shouldn't this just be a method of WebContents?
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
OLDNEW
« no previous file with comments | « content/public/browser/push_messaging_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698