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

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: Fixes try issue 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 NOTIMPLEMENTED();
14 }
15 13
16 BlimpLocationProvider::~BlimpLocationProvider() { 14 BlimpLocationProvider::~BlimpLocationProvider() {
17 StopProvider(); 15 StopProvider();
18 } 16 }
19 17
20 bool BlimpLocationProvider::StartProvider(bool high_accuracy) { 18 bool BlimpLocationProvider::StartProvider(bool high_accuracy) {
21 NOTIMPLEMENTED(); 19 NOTIMPLEMENTED();
22 return true; 20 return true;
23 } 21 }
24 22
25 void BlimpLocationProvider::StopProvider() { 23 void BlimpLocationProvider::StopProvider() {
26 NOTIMPLEMENTED();
27 } 24 }
28 25
29 void BlimpLocationProvider::GetPosition(content::Geoposition* position) { 26 void BlimpLocationProvider::GetPosition(content::Geoposition* position) {
30 DCHECK(position); 27 DCHECK(position);
31 28
32 *position = position_; 29 *position = position_;
33 } 30 }
34 31
35 void BlimpLocationProvider::RequestRefresh() { 32 void BlimpLocationProvider::RequestRefresh() {
36 NOTIMPLEMENTED(); 33 NOTIMPLEMENTED();
(...skipping 19 matching lines...) Expand all
56 53
57 void BlimpLocationProvider::SetUpdateCallback( 54 void BlimpLocationProvider::SetUpdateCallback(
58 const LocationProviderUpdateCallback& callback) { 55 const LocationProviderUpdateCallback& callback) {
59 DCHECK(!callback.is_null()); 56 DCHECK(!callback.is_null());
60 57
61 callback_ = callback; 58 callback_ = callback;
62 } 59 }
63 60
64 } // namespace engine 61 } // namespace engine
65 } // namespace blimp 62 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.cc ('k') | content/browser/geolocation/location_arbitrator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698