Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_ | |
| 6 #define CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "content/browser/geolocation/location_arbitrator.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 struct Geoposition; | |
| 14 | |
| 15 class MockGeolocationArbitrator : public GeolocationArbitrator { | |
| 16 public: | |
| 17 MockGeolocationArbitrator(); | |
| 18 | |
| 19 bool providers_started() const { return providers_started_; } | |
| 20 | |
| 21 // GeolocationArbitrator: | |
| 22 virtual void StartProviders(const GeolocationObserverOptions& options) | |
| 23 OVERRIDE; | |
| 24 virtual void StopProviders() OVERRIDE; | |
| 25 virtual void OnPermissionGranted() OVERRIDE; | |
| 26 virtual bool HasPermissionBeenGranted() const OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 | |
|
bulach
2012/11/28 19:35:59
nit: remove \n
John Knottenbelt
2012/11/29 17:31:01
Done.
| |
| 30 bool permission_granted_; | |
| 31 bool providers_started_; | |
|
bulach
2012/11/28 19:35:59
nit: \n DISALLOW_COPY_AND_ASSIGN(MockGeolocationAr
John Knottenbelt
2012/11/29 17:31:01
Done.
| |
| 32 }; | |
| 33 | |
| 34 }; | |
|
bulach
2012/11/28 19:35:59
nit: s/;/ // namespace content
John Knottenbelt
2012/11/29 17:31:01
Done.
| |
| 35 | |
| 36 #endif // CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_ | |
| OLD | NEW |