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

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

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "blimp/client/core/context/dummy_blimp_client_context.h"
6
7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h"
9 #include "base/metrics/histogram_macros.h"
10 #include "base/single_thread_task_runner.h"
11 #include "blimp/client/public/compositor/compositor_dependencies.h"
12
13 #if defined(OS_ANDROID)
14 #include "blimp/client/core/context/android/dummy_blimp_client_context_android.h "
15 #endif // OS_ANDROID
16
17 namespace blimp {
18 namespace client {
19
20 // This function is declared in //blimp/client/public/blimp_client_context.h,
21 // and either this function or the one in
22 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
23 // any binary using BlimpClientContext::Create.
24 // static
25 BlimpClientContext* BlimpClientContext::Create(
26 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
27 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
28 std::unique_ptr<CompositorDependencies> compositor_dependencies,
29 PrefService* local_state) {
30 #if defined(OS_ANDROID)
31 return new DummyBlimpClientContextAndroid();
32 #else
33 return new DummyBlimpClientContext();
34 #endif // defined(OS_ANDROID)
35 }
36
37 // This function is declared in //blimp/client/public/blimp_client_context.h,
38 // and either this function or the one in
39 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
40 // any binary using BlimpClientContext::RegisterPrefs.
41 // static
42 void BlimpClientContext::RegisterPrefs(PrefRegistrySimple* registry) {}
43
44 // This function is declared in //blimp/client/public/blimp_client_context.h,
45 // and either this function or the one in
46 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
47 // any binary using BlimpClientContext::ApplyBlimpSwitches.
48 // static
49 void BlimpClientContext::ApplyBlimpSwitches(CommandLinePrefStore* store) {}
50
51 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {
52 UMA_HISTOGRAM_BOOLEAN("Blimp.Supported", false);
53 }
54
55 DummyBlimpClientContext::~DummyBlimpClientContext() {}
56
57 void DummyBlimpClientContext::SetDelegate(
58 BlimpClientContextDelegate* delegate) {}
59
60 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents(
61 gfx::NativeWindow window) {
62 return nullptr;
63 }
64
65 void DummyBlimpClientContext::Connect() {
66 NOTREACHED();
67 }
68
69 void DummyBlimpClientContext::ConnectWithAssignment(
70 const Assignment& assignment) {
71 NOTREACHED();
72 }
73
74 } // namespace client
75 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/context/dummy_blimp_client_context.h ('k') | blimp/client/core/feedback/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698