Chromium Code Reviews| Index: blimp/client/public/blimp_client_context_delegate.h |
| diff --git a/blimp/client/public/blimp_client_context_delegate.h b/blimp/client/public/blimp_client_context_delegate.h |
| index 506d9483c19491bb8d29d54c794215aee9df91ac..db7155fc778c175883e4b7b3ce1fdfed6e03890a 100644 |
| --- a/blimp/client/public/blimp_client_context_delegate.h |
| +++ b/blimp/client/public/blimp_client_context_delegate.h |
| @@ -6,6 +6,11 @@ |
| #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ |
| #include "base/macros.h" |
| +#include "build/build_config.h" |
| + |
| +#if defined(OS_ANDROID) |
| +#include "base/android/jni_android.h" |
| +#endif // defined(OS_ANDROID) |
| namespace blimp { |
| namespace client { |
| @@ -15,6 +20,11 @@ class BlimpContents; |
| // functionality it needs from its embedder. |
| class BlimpClientContextDelegate { |
| public: |
| +#if defined(OS_ANDROID) |
| + // Returns a Java object of the type BlimpClientContextDelegate. |
| + virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; |
|
David Trainor- moved to gerrit
2016/08/03 19:39:54
Would a static GetJavaObject(Delegate* delegate) b
|
| +#endif // defined(OS_ANDROID) |
| + |
| virtual ~BlimpClientContextDelegate() = default; |
| // Attaches any required base::SupportsUserData::Data to the BlimpContents. |