OLD | NEW |
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 #include "blimp/client/core/dummy_blimp_client_context.h" | 5 #include "blimp/client/core/dummy_blimp_client_context.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/single_thread_task_runner.h" |
8 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
9 #include "blimp/client/public/blimp_client_context_delegate.h" | 11 #include "blimp/client/public/blimp_client_context_delegate.h" |
10 | 12 |
11 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
12 #include "blimp/client/core/android/dummy_blimp_client_context_android.h" | 14 #include "blimp/client/core/android/dummy_blimp_client_context_android.h" |
13 #endif // OS_ANDROID | 15 #endif // OS_ANDROID |
14 | 16 |
15 namespace blimp { | 17 namespace blimp { |
16 namespace client { | 18 namespace client { |
17 | 19 |
18 namespace { | 20 namespace { |
19 | 21 |
20 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
21 const char kDummyBlimpClientContextAndroidKey[] = | 23 const char kDummyBlimpClientContextAndroidKey[] = |
22 "dummy_blimp_client_context_android"; | 24 "dummy_blimp_client_context_android"; |
23 #endif // OS_ANDROID | 25 #endif // OS_ANDROID |
24 } | 26 } |
25 | 27 |
26 // This function is declared in //blimp/client/public/blimp_client_context.h, | 28 // This function is declared in //blimp/client/public/blimp_client_context.h, |
27 // and either this function or the one in | 29 // and either this function or the one in |
28 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to | 30 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to |
29 // any binary using BlimpClientContext::Create. | 31 // any binary using BlimpClientContext::Create. |
30 // static | 32 // static |
31 BlimpClientContext* BlimpClientContext::Create() { | 33 BlimpClientContext* BlimpClientContext::Create( |
| 34 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner) { |
32 return new DummyBlimpClientContext(); | 35 return new DummyBlimpClientContext(); |
33 } | 36 } |
34 | 37 |
35 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} | 38 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} |
36 | 39 |
37 DummyBlimpClientContext::~DummyBlimpClientContext() {} | 40 DummyBlimpClientContext::~DummyBlimpClientContext() {} |
38 | 41 |
39 #if defined(OS_ANDROID) | 42 #if defined(OS_ANDROID) |
40 | 43 |
41 base::android::ScopedJavaLocalRef<jobject> | 44 base::android::ScopedJavaLocalRef<jobject> |
(...skipping 18 matching lines...) Expand all Loading... |
60 | 63 |
61 void DummyBlimpClientContext::SetDelegate( | 64 void DummyBlimpClientContext::SetDelegate( |
62 BlimpClientContextDelegate* delegate) {} | 65 BlimpClientContextDelegate* delegate) {} |
63 | 66 |
64 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { | 67 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { |
65 return nullptr; | 68 return nullptr; |
66 } | 69 } |
67 | 70 |
68 } // namespace client | 71 } // namespace client |
69 } // namespace blimp | 72 } // namespace blimp |
OLD | NEW |