summaryrefslogtreecommitdiff
path: root/chromium/components/webxr/android/webxr_utils.h
blob: 19ea557fa5dad139516e470ebab5e6d99d259672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_
#define COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_

#include "base/android/jni_android.h"

namespace content {
class WebContents;
}

// Functions in this file are currently GVR/ArCore specific functions. If other
// platforms need the same function here, please move it to
// components/webxr/*util.cc|h
namespace webxr {

content::WebContents* GetWebContents(int render_process_id,
                                     int render_frame_id);

base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents(
    int render_process_id,
    int render_frame_id);

}  // namespace webxr

#endif  // COMPONENTS_WEBXR_ANDROID_WEBXR_UTILS_H_