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

Side by Side Diff: blimp/engine/feature/geolocation/blimp_location_provider.cc

Issue 2028823002: Refactor to make BlimpLocationProvider accessible to content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Makes testing override location provider accessible Created 4 years, 6 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/engine/feature/geolocation/blimp_location_provider.h" 5 #include "blimp/engine/feature/geolocation/blimp_location_provider.h"
6 6
7 #include "content/public/common/geoposition.h" 7 #include "content/public/common/geoposition.h"
8 8
9 namespace blimp { 9 namespace blimp {
10 namespace engine { 10 namespace engine {
11 11
12 BlimpLocationProvider::BlimpLocationProvider() {} 12 BlimpLocationProvider::BlimpLocationProvider() {}
13 13
14 BlimpLocationProvider::~BlimpLocationProvider() { 14 BlimpLocationProvider::~BlimpLocationProvider() {
15 StopProvider(); 15 StopProvider();
16 } 16 }
17 17
18 bool BlimpLocationProvider::StartProvider(bool high_accuracy) { 18 bool BlimpLocationProvider::StartProvider(bool high_accuracy) {
19 NOTIMPLEMENTED(); 19 NOTIMPLEMENTED();
20 return true; 20 return true;
21 } 21 }
22 22
23 void BlimpLocationProvider::StopProvider() { 23 void BlimpLocationProvider::StopProvider() {
24 NOTIMPLEMENTED();
25 } 24 }
26 25
27 void BlimpLocationProvider::GetPosition(content::Geoposition* position) { 26 void BlimpLocationProvider::GetPosition(content::Geoposition* position) {
28 DCHECK(position); 27 DCHECK(position);
29 28
30 *position = position_; 29 *position = position_;
31 } 30 }
32 31
33 void BlimpLocationProvider::RequestRefresh() { 32 void BlimpLocationProvider::RequestRefresh() {
34 NOTIMPLEMENTED(); 33 NOTIMPLEMENTED();
(...skipping 19 matching lines...) Expand all
54 53
55 void BlimpLocationProvider::SetUpdateCallback( 54 void BlimpLocationProvider::SetUpdateCallback(
56 const LocationProviderUpdateCallback& callback) { 55 const LocationProviderUpdateCallback& callback) {
57 DCHECK(!callback.is_null()); 56 DCHECK(!callback.is_null());
58 57
59 callback_ = callback; 58 callback_ = callback;
60 } 59 }
61 60
62 } // namespace engine 61 } // namespace engine
63 } // namespace blimp 62 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698