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/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 BlimpClientContext* BlimpClientContext::Create( | 23 BlimpClientContext* BlimpClientContext::Create( |
24 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, | 24 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, |
25 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner) { | 25 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner) { |
26 #if defined(OS_ANDROID) | 26 #if defined(OS_ANDROID) |
27 return new DummyBlimpClientContextAndroid(); | 27 return new DummyBlimpClientContextAndroid(); |
28 #else | 28 #else |
29 return new DummyBlimpClientContext(); | 29 return new DummyBlimpClientContext(); |
30 #endif // defined(OS_ANDROID) | 30 #endif // defined(OS_ANDROID) |
31 } | 31 } |
32 | 32 |
| 33 // static |
| 34 static void BlimpClientContext::Initialize() {} |
| 35 |
| 36 // static |
| 37 static void BlimpClientContext::Terminate() {} |
| 38 |
33 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} | 39 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} |
34 | 40 |
35 DummyBlimpClientContext::~DummyBlimpClientContext() {} | 41 DummyBlimpClientContext::~DummyBlimpClientContext() {} |
36 | 42 |
37 void DummyBlimpClientContext::SetDelegate( | 43 void DummyBlimpClientContext::SetDelegate( |
38 BlimpClientContextDelegate* delegate) {} | 44 BlimpClientContextDelegate* delegate) {} |
39 | 45 |
40 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { | 46 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { |
41 return nullptr; | 47 return nullptr; |
42 } | 48 } |
43 | 49 |
44 void DummyBlimpClientContext::Connect(const std::string& client_auth_token) { | 50 void DummyBlimpClientContext::Connect(const std::string& client_auth_token) { |
45 NOTREACHED(); | 51 NOTREACHED(); |
46 } | 52 } |
47 | 53 |
48 } // namespace client | 54 } // namespace client |
49 } // namespace blimp | 55 } // namespace blimp |
OLD | NEW |