OLD | NEW |
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.browser.framehost; | 5 package org.chromium.content.browser.framehost; |
6 | 6 |
| 7 import org.chromium.base.UnguessableToken; |
7 import org.chromium.base.annotations.CalledByNative; | 8 import org.chromium.base.annotations.CalledByNative; |
8 import org.chromium.base.annotations.JNINamespace; | 9 import org.chromium.base.annotations.JNINamespace; |
9 import org.chromium.content_public.browser.RenderFrameHost; | 10 import org.chromium.content_public.browser.RenderFrameHost; |
10 import org.chromium.mojo.system.impl.CoreImpl; | 11 import org.chromium.mojo.system.impl.CoreImpl; |
11 import org.chromium.services.service_manager.InterfaceProvider; | 12 import org.chromium.services.service_manager.InterfaceProvider; |
12 | 13 |
13 /** | 14 /** |
14 * The RenderFrameHostImpl Java wrapper to allow communicating with the native R
enderFrameHost | 15 * The RenderFrameHostImpl Java wrapper to allow communicating with the native R
enderFrameHost |
15 * object. | 16 * object. |
16 */ | 17 */ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 * Returns whether we're in incognito mode. | 71 * Returns whether we're in incognito mode. |
71 * | 72 * |
72 * TODO(timloh): This function shouldn't really be on here. If we end up | 73 * TODO(timloh): This function shouldn't really be on here. If we end up |
73 * needing more logic from the native BrowserContext, we should add a | 74 * needing more logic from the native BrowserContext, we should add a |
74 * wrapper for that and move this function there. | 75 * wrapper for that and move this function there. |
75 */ | 76 */ |
76 public boolean isIncognito() { | 77 public boolean isIncognito() { |
77 return mIncognito; | 78 return mIncognito; |
78 } | 79 } |
79 | 80 |
| 81 /** |
| 82 * Return the AndroidOverlay routing token for this RenderFrameHostImpl. |
| 83 */ |
| 84 public UnguessableToken getAndroidOverlayRoutingToken() { |
| 85 if (mNativeRenderFrameHostAndroid == 0) return null; |
| 86 return nativeGetAndroidOverlayRoutingToken(mNativeRenderFrameHostAndroid
); |
| 87 } |
| 88 |
80 private native String nativeGetLastCommittedURL(long nativeRenderFrameHostAn
droid); | 89 private native String nativeGetLastCommittedURL(long nativeRenderFrameHostAn
droid); |
| 90 private native UnguessableToken nativeGetAndroidOverlayRoutingToken( |
| 91 long nativeRenderFrameHostAndroid); |
81 } | 92 } |
OLD | NEW |