| Index: chrome/browser/android/blimp/chrome_blimp_client_context_delegate_android.h
|
| diff --git a/chrome/browser/android/blimp/chrome_blimp_client_context_delegate_android.h b/chrome/browser/android/blimp/chrome_blimp_client_context_delegate_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dc8beb0b8bbb00b768aa057c1a6019bb24531a2c
|
| --- /dev/null
|
| +++ b/chrome/browser/android/blimp/chrome_blimp_client_context_delegate_android.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
|
| +#define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
|
| +
|
| +#include "base/android/jni_android.h"
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h"
|
| +
|
| +// Android implementation of ChromeBlimpClientContextDelegate which is partly
|
| +// backed by Java.
|
| +class ChromeBlimpClientContextDelegateAndroid
|
| + : public ChromeBlimpClientContextDelegate {
|
| + public:
|
| + static bool RegisterJni(JNIEnv* env);
|
| +
|
| + ChromeBlimpClientContextDelegateAndroid(JNIEnv* env,
|
| + jobject jobj,
|
| + Profile* profile);
|
| + ~ChromeBlimpClientContextDelegateAndroid() override;
|
| +
|
| + void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& jobj);
|
| +
|
| + private:
|
| + base::android::ScopedJavaGlobalRef<jobject> java_obj_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegateAndroid);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_
|
|
|