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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java

Issue 1146813010: Introduce moderate binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 5 years, 6 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/android/java/src/org/chromium/content/browser/ChildProcessConnection.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java b/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java
index 31953866004d290b16f32944dd057cf7f9ec8fa4..0493053a8c7f438db1227d886f718d38a35db1ae 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java
@@ -98,7 +98,7 @@ public interface ChildProcessConnection {
boolean isStrongBindingBound();
/**
- * Called to remove the strong binding estabilished when the connection was started. It is safe
+ * Called to remove the strong binding established when the connection was started. It is safe
* to call this multiple times.
*/
void removeInitialBinding();
@@ -128,4 +128,18 @@ public interface ChildProcessConnection {
* Called when the service is no longer in active use of the consumer.
*/
void removeStrongBinding();
+
+ /**
+ * Attaches a moderate binding that will give the service the priority of a visible process, but
+ * keep the priority below a strongly bound process.
+ */
+ void addModerateBinding();
+
+ /**
+ * Called when the service is no longer in moderate use of the consumer.
+ */
+ void removeModerateBinding();
+
+ /** @return true iff the moderate oom binding is currently bound. */
+ boolean isModerateBindingBound();
}

Powered by Google App Engine
This is Rietveld 408576698