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

Unified Diff: content/public/browser/push_messaging_service.h

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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/push_messaging_service.h
diff --git a/content/public/browser/push_messaging_service.h b/content/public/browser/push_messaging_service.h
index 885cbc1d8e7a2d25620b3649d6484d0d751e9688..01248fe8ad9b11f4cb851b66dd1df4097eb873de 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -15,6 +15,8 @@
namespace content {
+class WebContents;
+
// A push service-agnostic interface that the Push API uses for talking to
// push messaging services like GCM. Must only be used on the UI thread.
class CONTENT_EXPORT PushMessagingService {
@@ -62,6 +64,9 @@ class CONTENT_EXPORT PushMessagingService {
virtual blink::WebPushPermissionStatus GetPermissionStatus(
const GURL& requesting_origin,
const GURL& embedding_origin) = 0;
+
+ protected:
+ bool IsWebContentsUserVisible(const WebContents* web_contents);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698