Chromium Code Reviews| Index: shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java |
| diff --git a/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ce6cd9bcbac110b51a1cc111a3275e22b321524d |
| --- /dev/null |
| +++ b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverService.java |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.mojo.shell; |
| + |
| +import android.app.IntentService; |
| +import android.content.Intent; |
| + |
| +/** |
| + * Intent Service that will forward received intents to the {@link IntentReceiverRegistry}. |
|
ppi
2015/04/08 11:10:10
maybe s/Intent Service/IntentService/ ?
qsr
2015/04/08 11:16:19
Done.
|
| + */ |
| +public class IntentReceiverService extends IntentService { |
| + public IntentReceiverService() { |
| + super("IntentReceiverService"); |
| + } |
| + |
| + /** |
| + * @see IntentService#onHandleIntent(Intent) |
| + */ |
| + @Override |
| + protected void onHandleIntent(Intent intent) { |
| + IntentReceiverRegistry.getInstance().onIntentReceived(intent); |
| + } |
| +} |