| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.os.IBinder; | 7 import android.os.IBinder; |
| 8 | 8 |
| 9 import org.chromium.base.process_launcher.ChildProcessCreationParams; | 9 import org.chromium.base.process_launcher.ChildProcessCreationParams; |
| 10 import org.chromium.base.process_launcher.FileDescriptorInfo; | 10 import org.chromium.base.process_launcher.FileDescriptorInfo; |
| 11 import org.chromium.content.common.IChildProcessService; | 11 import org.chromium.base.process_launcher.IChildProcessService; |
| 12 | 12 |
| 13 import javax.annotation.Nullable; | 13 import javax.annotation.Nullable; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Manages a connection between the browser activity and a child service. ChildP
rocessConnection is | 16 * Manages a connection between the browser activity and a child service. ChildP
rocessConnection is |
| 17 * responsible for estabilishing the connection (start()), closing it (stop()) a
nd manipulating the | 17 * responsible for estabilishing the connection (start()), closing it (stop()) a
nd manipulating the |
| 18 * bindings held onto the service (addStrongBinding(), removeStrongBinding(), | 18 * bindings held onto the service (addStrongBinding(), removeStrongBinding(), |
| 19 * removeInitialBinding()). | 19 * removeInitialBinding()). |
| 20 */ | 20 */ |
| 21 public interface ChildProcessConnection { | 21 public interface ChildProcessConnection { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void addModerateBinding(); | 144 void addModerateBinding(); |
| 145 | 145 |
| 146 /** | 146 /** |
| 147 * Called when the service is no longer in moderate use of the consumer. | 147 * Called when the service is no longer in moderate use of the consumer. |
| 148 */ | 148 */ |
| 149 void removeModerateBinding(); | 149 void removeModerateBinding(); |
| 150 | 150 |
| 151 /** @return true iff the moderate oom binding is currently bound. */ | 151 /** @return true iff the moderate oom binding is currently bound. */ |
| 152 boolean isModerateBindingBound(); | 152 boolean isModerateBindingBound(); |
| 153 } | 153 } |
| OLD | NEW |