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

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

Issue 2211613002: Add AssignmentSource to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #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/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
11 #include "blimp/client/core/android/dummy_blimp_client_context_android.h" 11 #include "blimp/client/core/android/dummy_blimp_client_context_android.h"
12 #endif // OS_ANDROID 12 #endif // OS_ANDROID
13 13
14 namespace blimp { 14 namespace blimp {
15 namespace client { 15 namespace client {
16 16
17 // This function is declared in //blimp/client/public/blimp_client_context.h, 17 // This function is declared in //blimp/client/public/blimp_client_context.h,
Kevin M 2016/08/04 17:44:17 This comment doesn't really add any more context t
nyquist 2016/08/05 21:22:38 It does mention the other place the method is impl
18 // and either this function or the one in 18 // and either this function or the one in
19 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to 19 // //blimp/client/core/blimp_client_context_impl.cc should be linked in to
20 // any binary using BlimpClientContext::Create. 20 // any binary using BlimpClientContext::Create.
21 // static 21 // static
22 BlimpClientContext* BlimpClientContext::Create( 22 BlimpClientContext* BlimpClientContext::Create(
23 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner) { 23 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
24 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner) {
24 #if defined(OS_ANDROID) 25 #if defined(OS_ANDROID)
25 return new DummyBlimpClientContextAndroid(); 26 return new DummyBlimpClientContextAndroid();
26 #else 27 #else
27 return new DummyBlimpClientContext(); 28 return new DummyBlimpClientContext();
28 #endif // defined(OS_ANDROID) 29 #endif // defined(OS_ANDROID)
29 } 30 }
30 31
31 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {} 32 DummyBlimpClientContext::DummyBlimpClientContext() : BlimpClientContext() {}
32 33
33 DummyBlimpClientContext::~DummyBlimpClientContext() {} 34 DummyBlimpClientContext::~DummyBlimpClientContext() {}
34 35
35 void DummyBlimpClientContext::SetDelegate( 36 void DummyBlimpClientContext::SetDelegate(
36 BlimpClientContextDelegate* delegate) {} 37 BlimpClientContextDelegate* delegate) {}
37 38
38 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() { 39 std::unique_ptr<BlimpContents> DummyBlimpClientContext::CreateBlimpContents() {
39 return nullptr; 40 return nullptr;
40 } 41 }
41 42
43 void DummyBlimpClientContext::Connect(const std::string& client_auth_token) {}
David Trainor- moved to gerrit 2016/08/04 16:15:51 NOTREACHED() maybe?
nyquist 2016/08/05 21:22:38 Done. I wasn't sure whether we wanted to guard the
44
42 } // namespace client 45 } // namespace client
43 } // namespace blimp 46 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698