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

Side by Side Diff: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ChildProcessLauncherTestHelperService.java

Issue 2765453004: Moving FileDescriptorInfo from content/ to base/. (Closed)
Patch Set: Synced. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/public/android/junit/src/org/chromium/content/browser/BindingManagerImplTest.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_shell_apk; 5 package org.chromium.content_shell_apk;
6 6
7 import android.app.Service; 7 import android.app.Service;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.os.Handler; 9 import android.os.Handler;
10 import android.os.HandlerThread; 10 import android.os.HandlerThread;
11 import android.os.IBinder; 11 import android.os.IBinder;
12 import android.os.Message; 12 import android.os.Message;
13 import android.os.Messenger; 13 import android.os.Messenger;
14 import android.os.RemoteException; 14 import android.os.RemoteException;
15 15
16 import org.chromium.base.BaseSwitches; 16 import org.chromium.base.BaseSwitches;
17 import org.chromium.base.CommandLine; 17 import org.chromium.base.CommandLine;
18 import org.chromium.base.library_loader.LibraryLoader; 18 import org.chromium.base.library_loader.LibraryLoader;
19 import org.chromium.base.library_loader.LibraryProcessType; 19 import org.chromium.base.library_loader.LibraryProcessType;
20 import org.chromium.base.library_loader.ProcessInitException; 20 import org.chromium.base.library_loader.ProcessInitException;
21 import org.chromium.base.process_launcher.ChildProcessCreationParams; 21 import org.chromium.base.process_launcher.ChildProcessCreationParams;
22 import org.chromium.base.process_launcher.FileDescriptorInfo;
22 import org.chromium.content.browser.ChildProcessConnection; 23 import org.chromium.content.browser.ChildProcessConnection;
23 import org.chromium.content.browser.ChildProcessLauncher; 24 import org.chromium.content.browser.ChildProcessLauncher;
24 import org.chromium.content.common.FileDescriptorInfo;
25 25
26 /** 26 /**
27 * A Service that assists the ChildProcessLauncherTest that responds to one mess age, which 27 * A Service that assists the ChildProcessLauncherTest that responds to one mess age, which
28 * starts a sandboxed service process via the ChildProcessLauncher. This is requ ired to test 28 * starts a sandboxed service process via the ChildProcessLauncher. This is requ ired to test
29 * the behavior when two independent processes in the same package try and bind to the same 29 * the behavior when two independent processes in the same package try and bind to the same
30 * sandboxed service process. 30 * sandboxed service process.
31 */ 31 */
32 public class ChildProcessLauncherTestHelperService extends Service { 32 public class ChildProcessLauncherTestHelperService extends Service {
33 public static final int MSG_BIND_SERVICE = IBinder.FIRST_CALL_TRANSACTION + 1; 33 public static final int MSG_BIND_SERVICE = IBinder.FIRST_CALL_TRANSACTION + 1;
34 public static final int MSG_BIND_SERVICE_REPLY = MSG_BIND_SERVICE + 1; 34 public static final int MSG_BIND_SERVICE_REPLY = MSG_BIND_SERVICE + 1;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 throw new RuntimeException(ex); 90 throw new RuntimeException(ex);
91 } 91 }
92 } else { 92 } else {
93 handler.postDelayed(this, 10 /* milliseconds */); 93 handler.postDelayed(this, 10 /* milliseconds */);
94 } 94 }
95 } 95 }
96 }; 96 };
97 handler.postDelayed(task, 10); 97 handler.postDelayed(task, 10);
98 } 98 }
99 } 99 }
OLDNEW
« no previous file with comments | « content/public/android/junit/src/org/chromium/content/browser/BindingManagerImplTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698