#ifndef CONTENT_BROWSER_ANDROID_NAVIGATION_HANDLE_PROXY_H_
#define CONTENT_BROWSER_ANDROID_NAVIGATION_HANDLE_PROXY_H_
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "base/memory/raw_ptr.h"
#include "net/http/http_request_headers.h"
namespace content {
class NavigationHandle;
class NavigationHandleProxy final {
public:
explicit NavigationHandleProxy(NavigationHandle* cpp_navigation_handle);
~NavigationHandleProxy();
const base::android::JavaRef<jobject>& java_navigation_handle() const {
return java_navigation_handle_;
}
void DidStart();
void DidRedirect();
void DidFinish();
private:
std::string GetMimeType() const;
base::android::ScopedJavaGlobalRef<jobject> java_navigation_handle_;
raw_ptr<NavigationHandle> cpp_navigation_handle_ = nullptr;
};
}
#endif