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

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

Issue 2692023002: Make PaymentRequestImpl work with RenderFrameHost (Closed)
Patch Set: Address review comment 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 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.annotations.CalledByNative; 7 import org.chromium.base.annotations.CalledByNative;
8 import org.chromium.base.annotations.JNINamespace; 8 import org.chromium.base.annotations.JNINamespace;
9 import org.chromium.content_public.browser.RenderFrameHost; 9 import org.chromium.content_public.browser.RenderFrameHost;
10 10
(...skipping 17 matching lines...) Expand all
28 private static RenderFrameHostImpl create( 28 private static RenderFrameHostImpl create(
29 long nativeRenderFrameHostAndroid, RenderFrameHostDelegate delegate) { 29 long nativeRenderFrameHostAndroid, RenderFrameHostDelegate delegate) {
30 return new RenderFrameHostImpl(nativeRenderFrameHostAndroid, delegate); 30 return new RenderFrameHostImpl(nativeRenderFrameHostAndroid, delegate);
31 } 31 }
32 32
33 @CalledByNative 33 @CalledByNative
34 private void clearNativePtr() { 34 private void clearNativePtr() {
35 mNativeRenderFrameHostAndroid = 0; 35 mNativeRenderFrameHostAndroid = 0;
36 } 36 }
37 37
38 /**
39 * Get the delegate associated with this RenderFrameHost.
40 *
41 * @return The delegate associated with this RenderFrameHost.
42 */
38 public RenderFrameHostDelegate getRenderFrameHostDelegate() { 43 public RenderFrameHostDelegate getRenderFrameHostDelegate() {
39 return mDelegate; 44 return mDelegate;
40 } 45 }
41 46
42 @Override 47 @Override
43 public String getLastCommittedURL() { 48 public String getLastCommittedURL() {
44 if (mNativeRenderFrameHostAndroid == 0) return null; 49 if (mNativeRenderFrameHostAndroid == 0) return null;
45 return nativeGetLastCommittedURL(mNativeRenderFrameHostAndroid); 50 return nativeGetLastCommittedURL(mNativeRenderFrameHostAndroid);
46 } 51 }
47 52
48 private native String nativeGetLastCommittedURL(long nativeRenderFrameHostAn droid); 53 private native String nativeGetLastCommittedURL(long nativeRenderFrameHostAn droid);
49 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698