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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 20 matching lines...) Expand all Loading... |
31 explicit RenderFrameHostAndroid(RenderFrameHostImpl* render_frame_host); | 31 explicit RenderFrameHostAndroid(RenderFrameHostImpl* render_frame_host); |
32 ~RenderFrameHostAndroid() override; | 32 ~RenderFrameHostAndroid() override; |
33 | 33 |
34 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 34 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
35 | 35 |
36 // Methods called from Java | 36 // Methods called from Java |
37 base::android::ScopedJavaLocalRef<jstring> GetLastCommittedURL( | 37 base::android::ScopedJavaLocalRef<jstring> GetLastCommittedURL( |
38 JNIEnv* env, | 38 JNIEnv* env, |
39 const base::android::JavaParamRef<jobject>&) const; | 39 const base::android::JavaParamRef<jobject>&) const; |
40 | 40 |
| 41 // Returns UnguessableToken. |
| 42 base::android::ScopedJavaLocalRef<jobject> GetAndroidOverlayRoutingToken( |
| 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>&) const; |
| 45 |
41 private: | 46 private: |
42 RenderFrameHostImpl* const render_frame_host_; | 47 RenderFrameHostImpl* const render_frame_host_; |
43 JavaObjectWeakGlobalRef obj_; | 48 JavaObjectWeakGlobalRef obj_; |
44 | 49 |
45 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostAndroid); | 50 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostAndroid); |
46 }; | 51 }; |
47 | 52 |
48 } // namespace content | 53 } // namespace content |
49 | 54 |
50 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ | 55 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_ANDROID_H_ |
OLD | NEW |