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

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

Issue 2705133002: android: Allow registering multiple CreationParams (Closed)
Patch Set: javadoc 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
OLDNEW
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;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 return mInSandbox; 302 return mInSandbox;
303 } 303 }
304 304
305 @Override 305 @Override
306 public String getPackageName() { 306 public String getPackageName() {
307 return mCreationParams != null ? mCreationParams.getPackageName() 307 return mCreationParams != null ? mCreationParams.getPackageName()
308 : mContext.getPackageName(); 308 : mContext.getPackageName();
309 } 309 }
310 310
311 @Override 311 @Override
312 public ChildProcessCreationParams getCreationParams() {
313 return mCreationParams;
314 }
315
316 @Override
312 public IChildProcessService getService() { 317 public IChildProcessService getService() {
313 synchronized (mLock) { 318 synchronized (mLock) {
314 return mService; 319 return mService;
315 } 320 }
316 } 321 }
317 322
318 @Override 323 @Override
319 public int getPid() { 324 public int getPid() {
320 synchronized (mLock) { 325 synchronized (mLock) {
321 return mPid; 326 return mPid;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 return true; 556 return true;
552 } 557 }
553 return false; 558 return false;
554 } 559 }
555 560
556 @VisibleForTesting 561 @VisibleForTesting
557 public boolean isConnected() { 562 public boolean isConnected() {
558 return mService != null; 563 return mService != null;
559 } 564 }
560 } 565 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698