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

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

Issue 2297933002: blimp: Set up the CompositorDependencies for blimp in Chrome. (Closed)
Patch Set: Created 4 years, 3 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 #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
11 #if defined(OS_ANDROID) 11 #if defined(OS_ANDROID)
12 #include "blimp/client/core/android/dummy_blimp_client_context_android.h" 12 #include "blimp/client/core/android/dummy_blimp_client_context_android.h"
13 #endif // OS_ANDROID 13 #endif // OS_ANDROID
14 14
15 namespace blimp { 15 namespace blimp {
16 namespace client { 16 namespace client {
17 17
18 // This function is declared in //blimp/client/public/blimp_client_context.h, 18 // This function is declared in //blimp/client/public/blimp_client_context.h,
19 // and either this function or the one in 19 // and either this function or the one in
20 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to 20 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
21 // any binary using BlimpClientContext::Create. 21 // any binary using BlimpClientContext::Create.
22 // static 22 // static
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 std::unique_ptr<CompositorDependencies> compositor_dependencies) {
26 #if defined(OS_ANDROID) 27 #if defined(OS_ANDROID)
27 return new DummyBlimpClientContextAndroid(); 28 return new DummyBlimpClientContextAndroid();
28 #else 29 #else
29 return new DummyBlimpClientContext(); 30 return new DummyBlimpClientContext();
30 #endif // defined(OS_ANDROID) 31 #endif // defined(OS_ANDROID)
31 } 32 }
32 33
33 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} 34 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {}
34 35
35 DummyBlimpClientContext::~DummyBlimpClientContext() {} 36 DummyBlimpClientContext::~DummyBlimpClientContext() {}
36 37
37 void DummyBlimpClientContext::SetDelegate( 38 void DummyBlimpClientContext::SetDelegate(
38 BlimpClientContextDelegate* delegate) {} 39 BlimpClientContextDelegate* delegate) {}
39 40
40 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { 41 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() {
41 return nullptr; 42 return nullptr;
42 } 43 }
43 44
44 void DummyBlimpClientContext::Connect() { 45 void DummyBlimpClientContext::Connect() {
45 NOTREACHED(); 46 NOTREACHED();
46 } 47 }
47 48
48 } // namespace client 49 } // namespace client
49 } // namespace blimp 50 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698