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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.Context; 7 import android.content.Context;
8 8
9 import org.chromium.base.annotations.CalledByNative; 9 import org.chromium.base.annotations.CalledByNative;
10 import org.chromium.base.annotations.JNINamespace; 10 import org.chromium.base.annotations.JNINamespace;
11 import org.chromium.blink.mojom.ShapeDetection; 11 import org.chromium.blink.mojom.ShapeDetection;
12 import org.chromium.content.browser.shapedetection.ShapeDetectionFactory; 12 import org.chromium.content.browser.shapedetection.ShapeDetectionFactory;
13 import org.chromium.content_public.browser.InterfaceRegistrar; 13 import org.chromium.content_public.browser.InterfaceRegistrar;
14 import org.chromium.content_public.browser.WebContents; 14 import org.chromium.content_public.browser.WebContents;
15 import org.chromium.device.BatteryMonitor; 15 import org.chromium.device.BatteryMonitor;
16 import org.chromium.device.VibrationManager; 16 import org.chromium.device.VibrationManager;
17 import org.chromium.device.battery.BatteryMonitorFactory; 17 import org.chromium.device.battery.BatteryMonitorFactory;
18 import org.chromium.device.nfc.mojom.Nfc; 18 import org.chromium.device.nfc.mojom.Nfc;
19 import org.chromium.device.vibration.VibrationManagerImpl; 19 import org.chromium.device.vibration.VibrationManagerImpl;
20 import org.chromium.mojo.system.impl.CoreImpl; 20 import org.chromium.mojo.system.impl.CoreImpl;
21 import org.chromium.services.shell.InterfaceRegistry; 21 import org.chromium.services.service_manager.InterfaceRegistry;
22 22
23 @JNINamespace("content") 23 @JNINamespace("content")
24 class InterfaceRegistrarImpl { 24 class InterfaceRegistrarImpl {
25 @CalledByNative 25 @CalledByNative
26 static void createInterfaceRegistryForContext(int nativeHandle, Context appl icationContext) { 26 static void createInterfaceRegistryForContext(int nativeHandle, Context appl icationContext) {
27 ensureContentRegistrarsAreRegistered(); 27 ensureContentRegistrarsAreRegistered();
28 28
29 InterfaceRegistry registry = InterfaceRegistry.create( 29 InterfaceRegistry registry = InterfaceRegistry.create(
30 CoreImpl.getInstance().acquireNativeHandle(nativeHandle).toMessa gePipeHandle()); 30 CoreImpl.getInstance().acquireNativeHandle(nativeHandle).toMessa gePipeHandle());
31 InterfaceRegistrar.Registry.applyContextRegistrars(registry, application Context); 31 InterfaceRegistrar.Registry.applyContextRegistrars(registry, application Context);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // TODO(avayvod): Register the PresentationService implementation here. 63 // TODO(avayvod): Register the PresentationService implementation here.
64 } 64 }
65 } 65 }
66 66
67 class ContentWebContentsInterfaceRegistrar implements InterfaceRegistrar<WebCont ents> { 67 class ContentWebContentsInterfaceRegistrar implements InterfaceRegistrar<WebCont ents> {
68 @Override 68 @Override
69 public void registerInterfaces(InterfaceRegistry registry, final WebContents webContents) { 69 public void registerInterfaces(InterfaceRegistry registry, final WebContents webContents) {
70 registry.addInterface(Nfc.MANAGER, new NfcFactory(webContents)); 70 registry.addInterface(Nfc.MANAGER, new NfcFactory(webContents));
71 } 71 }
72 } 72 }
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/public/android/java/src/org/chromium/content/browser/NfcFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698