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

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

Issue 1376703002: Presentation API: reject screen availability observing on Android low ram devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix and add tests Created 5 years, 2 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
« no previous file with comments | « content/browser/presentation/presentation_service_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/presentation_screen_availability_listener.h
diff --git a/content/public/browser/presentation_screen_availability_listener.h b/content/public/browser/presentation_screen_availability_listener.h
index 4580ddf0501d3ade4e6168bc18882b289749b0be..473981c2359bd9502b47eadc5992ca9a1eceecf0 100644
--- a/content/public/browser/presentation_screen_availability_listener.h
+++ b/content/public/browser/presentation_screen_availability_listener.h
@@ -26,6 +26,11 @@ class CONTENT_EXPORT PresentationScreenAvailabilityListener {
// Called when screen availability for the associated Presentation URL has
// changed to |available|.
virtual void OnScreenAvailabilityChanged(bool available) = 0;
+
+ // Callend when screen availability monitoring is not supported by the
+ // by the implementation because of system limitations like running low on
+ // battery or having resource constraints.
+ virtual void OnScreenAvailabilityNotSupported() = 0;
};
} // namespace content
« no previous file with comments | « content/browser/presentation/presentation_service_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698