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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java

Issue 1156183003: Pass file Regions along with FDs to child processes on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add operator!= for Region Created 5 years, 6 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
OLDNEW
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.Bundle; 7 import android.os.Bundle;
8 8
9 import org.chromium.content.common.IChildProcessCallback; 9 import org.chromium.content.common.IChildProcessCallback;
10 import org.chromium.content.common.IChildProcessService; 10 import org.chromium.content.common.IChildProcessService;
(...skipping 22 matching lines...) Expand all
33 * Called when the connection to the service is established. 33 * Called when the connection to the service is established.
34 * @param pid the pid of the child process 34 * @param pid the pid of the child process
35 */ 35 */
36 void onConnected(int pid); 36 void onConnected(int pid);
37 } 37 }
38 38
39 // Names of items placed in the bind intent or connection bundle. 39 // Names of items placed in the bind intent or connection bundle.
40 public static final String EXTRA_COMMAND_LINE = 40 public static final String EXTRA_COMMAND_LINE =
41 "com.google.android.apps.chrome.extra.command_line"; 41 "com.google.android.apps.chrome.extra.command_line";
42 // Note the FDs may only be passed in the connection bundle. 42 // Note the FDs may only be passed in the connection bundle.
43 public static final String EXTRA_FILES_PREFIX = 43 public static final String EXTRA_FILES = "com.google.android.apps.chrome.ext ra.extraFiles";
44 "com.google.android.apps.chrome.extra.extraFile_";
45 public static final String EXTRA_FILES_ID_SUFFIX = "_id";
46 public static final String EXTRA_FILES_FD_SUFFIX = "_fd";
47 44
48 // Used to pass the CPU core count to child processes. 45 // Used to pass the CPU core count to child processes.
49 public static final String EXTRA_CPU_COUNT = 46 public static final String EXTRA_CPU_COUNT =
50 "com.google.android.apps.chrome.extra.cpu_count"; 47 "com.google.android.apps.chrome.extra.cpu_count";
51 // Used to pass the CPU features mask to child processes. 48 // Used to pass the CPU features mask to child processes.
52 public static final String EXTRA_CPU_FEATURES = 49 public static final String EXTRA_CPU_FEATURES =
53 "com.google.android.apps.chrome.extra.cpu_features"; 50 "com.google.android.apps.chrome.extra.cpu_features";
54 51
55 int getServiceNumber(); 52 int getServiceNumber();
56 53
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * call should be succeeded by removeStrongBinding(), but multiple strong bi ndings can be 122 * call should be succeeded by removeStrongBinding(), but multiple strong bi ndings can be
126 * requested and released independently. 123 * requested and released independently.
127 */ 124 */
128 void addStrongBinding(); 125 void addStrongBinding();
129 126
130 /** 127 /**
131 * Called when the service is no longer in active use of the consumer. 128 * Called when the service is no longer in active use of the consumer.
132 */ 129 */
133 void removeStrongBinding(); 130 void removeStrongBinding();
134 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698