| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.content.ComponentName; | 7 import android.content.ComponentName; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.Intent; | 9 import android.content.Intent; |
| 10 import android.content.ServiceConnection; | 10 import android.content.ServiceConnection; |
| 11 import android.os.Bundle; | 11 import android.os.Bundle; |
| 12 import android.os.DeadObjectException; | 12 import android.os.DeadObjectException; |
| 13 import android.os.IBinder; | 13 import android.os.IBinder; |
| 14 import android.os.ParcelFileDescriptor; | 14 import android.os.ParcelFileDescriptor; |
| 15 import android.os.RemoteException; | 15 import android.os.RemoteException; |
| 16 import android.util.Log; | 16 import android.util.Log; |
| 17 | 17 |
| 18 import com.google.common.annotations.VisibleForTesting; | |
| 19 | |
| 20 import org.chromium.base.CpuFeatures; | 18 import org.chromium.base.CpuFeatures; |
| 21 import org.chromium.base.ThreadUtils; | 19 import org.chromium.base.ThreadUtils; |
| 22 import org.chromium.base.TraceEvent; | 20 import org.chromium.base.TraceEvent; |
| 21 import org.chromium.base.VisibleForTesting; |
| 23 import org.chromium.base.library_loader.Linker; | 22 import org.chromium.base.library_loader.Linker; |
| 24 import org.chromium.content.app.ChildProcessService; | 23 import org.chromium.content.app.ChildProcessService; |
| 25 import org.chromium.content.app.ChromiumLinkerParams; | 24 import org.chromium.content.app.ChromiumLinkerParams; |
| 26 import org.chromium.content.common.IChildProcessCallback; | 25 import org.chromium.content.common.IChildProcessCallback; |
| 27 import org.chromium.content.common.IChildProcessService; | 26 import org.chromium.content.common.IChildProcessService; |
| 28 | 27 |
| 29 import java.io.IOException; | 28 import java.io.IOException; |
| 30 | 29 |
| 31 /** | 30 /** |
| 32 * Manages a connection between the browser activity and a child service. | 31 * Manages a connection between the browser activity and a child service. |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 return true; | 436 return true; |
| 438 } | 437 } |
| 439 return false; | 438 return false; |
| 440 } | 439 } |
| 441 | 440 |
| 442 @VisibleForTesting | 441 @VisibleForTesting |
| 443 public boolean isConnected() { | 442 public boolean isConnected() { |
| 444 return mService != null; | 443 return mService != null; |
| 445 } | 444 } |
| 446 } | 445 } |
| OLD | NEW |