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.content.pm.PackageManager; | 11 import android.content.pm.PackageManager; |
12 import android.content.pm.ServiceInfo; | 12 import android.content.pm.ServiceInfo; |
13 import android.os.Build; | 13 import android.os.Build; |
14 import android.os.Bundle; | 14 import android.os.Bundle; |
15 import android.os.DeadObjectException; | 15 import android.os.DeadObjectException; |
16 import android.os.IBinder; | 16 import android.os.IBinder; |
17 import android.os.RemoteException; | 17 import android.os.RemoteException; |
18 | 18 |
19 import org.chromium.base.Log; | 19 import org.chromium.base.Log; |
20 import org.chromium.base.ThreadUtils; | 20 import org.chromium.base.ThreadUtils; |
21 import org.chromium.base.TraceEvent; | 21 import org.chromium.base.TraceEvent; |
22 import org.chromium.base.VisibleForTesting; | 22 import org.chromium.base.VisibleForTesting; |
23 import org.chromium.base.process_launcher.ChildProcessCreationParams; | 23 import org.chromium.base.process_launcher.ChildProcessCreationParams; |
24 import org.chromium.base.process_launcher.FileDescriptorInfo; | 24 import org.chromium.base.process_launcher.FileDescriptorInfo; |
25 import org.chromium.content.common.IChildProcessService; | 25 import org.chromium.base.process_launcher.IChildProcessService; |
26 | 26 |
27 import java.io.IOException; | 27 import java.io.IOException; |
28 | 28 |
29 import javax.annotation.Nullable; | 29 import javax.annotation.Nullable; |
30 | 30 |
31 /** | 31 /** |
32 * Manages a connection between the browser activity and a child service. | 32 * Manages a connection between the browser activity and a child service. |
33 */ | 33 */ |
34 public class ChildProcessConnectionImpl implements ChildProcessConnection { | 34 public class ChildProcessConnectionImpl implements ChildProcessConnection { |
35 private final Context mContext; | 35 private final Context mContext; |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 return true; | 546 return true; |
547 } | 547 } |
548 return false; | 548 return false; |
549 } | 549 } |
550 | 550 |
551 @VisibleForTesting | 551 @VisibleForTesting |
552 public boolean isConnected() { | 552 public boolean isConnected() { |
553 return mService != null; | 553 return mService != null; |
554 } | 554 } |
555 } | 555 } |
OLD | NEW |