OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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; |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 return ChildProcessLauncher.allocatedSandboxedConnectionsCountForTesting
( | 530 return ChildProcessLauncher.allocatedSandboxedConnectionsCountForTesting
( |
531 context, context.getPackageName()); | 531 context, context.getPackageName()); |
532 } | 532 } |
533 | 533 |
534 private ChildProcessCreationParams getDefaultChildProcessCreationParams(Stri
ng packageName) { | 534 private ChildProcessCreationParams getDefaultChildProcessCreationParams(Stri
ng packageName) { |
535 return new ChildProcessCreationParams(packageName, false /* isExternalSe
rvice */, | 535 return new ChildProcessCreationParams(packageName, false /* isExternalSe
rvice */, |
536 LibraryProcessType.PROCESS_CHILD); | 536 LibraryProcessType.PROCESS_CHILD); |
537 } | 537 } |
538 | 538 |
539 private void triggerConnectionSetup(ChildProcessConnectionImpl connection) { | 539 private void triggerConnectionSetup(ChildProcessConnectionImpl connection) { |
540 ChildProcessLauncher.triggerConnectionSetup(connection, sProcessWaitArgu
ments, 1, | 540 ChildProcessLauncher.triggerConnectionSetup(connection, sProcessWaitArgu
ments, |
541 new FileDescriptorInfo[0], ChildProcessLauncher.CALLBACK_FOR_REN
DERER_PROCESS, | 541 1 /* childProcessId */, new FileDescriptorInfo[0], null /* launc
hCallback */, |
542 null); | 542 null /* childProcessCallback */); |
543 } | 543 } |
544 } | 544 } |
OLD | NEW |