Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: blimp/client/core/dummy_blimp_client_context.h

Issue 2193623002: Make the BlimpClientContextImplAndroid become a BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 5 #ifndef BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
6 #define BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 6 #define BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/supports_user_data.h"
10 #include "blimp/client/public/blimp_client_context.h" 9 #include "blimp/client/public/blimp_client_context.h"
11 #include "blimp/client/public/contents/blimp_contents.h" 10 #include "blimp/client/public/contents/blimp_contents.h"
12 11
13 #if defined(OS_ANDROID)
14 #include "base/android/jni_android.h"
15 #endif // defined(OS_ANDROID)
16
17 namespace blimp { 12 namespace blimp {
18 namespace client { 13 namespace client {
19 14
20 #if defined(OS_ANDROID)
21 class DummyBlimpClientContextAndroid;
22 #endif // defined(OS_ANDROID)
23
24 // A dummy implementation of the BlimpClientContext. 15 // A dummy implementation of the BlimpClientContext.
25 class DummyBlimpClientContext : public BlimpClientContext, 16 class DummyBlimpClientContext : public BlimpClientContext {
26 base::SupportsUserData {
27 public: 17 public:
28 DummyBlimpClientContext(); 18 DummyBlimpClientContext();
29 ~DummyBlimpClientContext() override; 19 ~DummyBlimpClientContext() override;
30 20
31 #if defined(OS_ANDROID) 21 // BlimpClientContext implementation.
32 DummyBlimpClientContextAndroid* GetDummyBlimpClientContextAndroid();
33 #endif // defined(OS_ANDROID)
34
35 // BlimpClientContext implementation.
36 #if defined(OS_ANDROID)
37 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
38 #endif // defined(OS_ANDROID)
39 void SetDelegate(BlimpClientContextDelegate* delegate) override; 22 void SetDelegate(BlimpClientContextDelegate* delegate) override;
40 std::unique_ptr<BlimpContents> CreateBlimpContents() override; 23 std::unique_ptr<BlimpContents> CreateBlimpContents() override;
41 24
42 private: 25 private:
43 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContext); 26 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContext);
44 }; 27 };
45 28
46 } // namespace client 29 } // namespace client
47 } // namespace blimp 30 } // namespace blimp
48 31
49 #endif // BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 32 #endif // BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
OLDNEW
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.cc ('k') | blimp/client/core/dummy_blimp_client_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698