blob: d12bbfc582ef0beea22cc0927e339d632c1c152c [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DATA_SHARING_DATA_SHARING_UI_DELEGATE_ANDROID_H_
#define CHROME_BROWSER_DATA_SHARING_DATA_SHARING_UI_DELEGATE_ANDROID_H_
#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "base/supports_user_data.h"
#include "chrome/browser/profiles/profile.h"
#include "components/data_sharing/public/data_sharing_ui_delegate.h"
using base::android::ScopedJavaGlobalRef;
namespace data_sharing {
// Android side implementation of a DataSharingUIDelegate.
class DataSharingUIDelegateAndroid : public DataSharingUIDelegate {
public:
explicit DataSharingUIDelegateAndroid(Profile* profile);
~DataSharingUIDelegateAndroid() override;
// DataSharingUIDelegate implementation.
void HandleShareURLIntercepted(const GURL& url) override;
private:
ScopedJavaGlobalRef<jobject> java_obj_;
};
} // namespace data_sharing
#endif // CHROME_BROWSER_DATA_SHARING_DATA_SHARING_UI_DELEGATE_ANDROID_H_