Index: blimp/client/core/blimp_client_context_impl.h |
diff --git a/blimp/client/core/blimp_client_context_impl.h b/blimp/client/core/blimp_client_context_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..64647409682e9d2343b3ea834da48d8c555e0f04 |
--- /dev/null |
+++ b/blimp/client/core/blimp_client_context_impl.h |
@@ -0,0 +1,52 @@ |
+// 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 BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
+#define BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
+ |
+#include "base/macros.h" |
+#include "base/supports_user_data.h" |
+#include "blimp/client/public/blimp_client_context.h" |
+#include "blimp/client/public/blimp_contents.h" |
+ |
+#if defined(OS_ANDROID) |
+#include "base/android/jni_android.h" |
+#endif // defined(OS_ANDROID) |
+ |
+namespace blimp { |
+namespace client { |
+ |
+#if defined(OS_ANDROID) |
+class BlimpClientContextImplAndroid; |
+#endif // defined(OS_ANDROID) |
+ |
+// BlimpClientContextImpl is the implementation of the main context-class for |
+// the blimp client. |
+class BlimpClientContextImpl : public BlimpClientContext, |
+ base::SupportsUserData { |
+ public: |
+ BlimpClientContextImpl(); |
+ ~BlimpClientContextImpl() override; |
+ |
+#if defined(OS_ANDROID) |
+ BlimpClientContextImplAndroid* GetBlimpClientContextImplAndroid(); |
+#endif // defined(OS_ANDROID) |
+ |
+// BlimpClientContext implementation. |
+#if defined(OS_ANDROID) |
+ base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
+#endif // defined(OS_ANDROID) |
+ void SetDelegate(BlimpClientContextDelegate* delegate) override; |
+ std::unique_ptr<BlimpContents> CreateBlimpContents() override; |
+ |
+ private: |
+ BlimpClientContextDelegate* delegate_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); |
+}; |
+ |
+} // namespace client |
+} // namespace blimp |
+ |
+#endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ |