OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 struct Geoposition; | 12 struct Geoposition; |
14 } | 13 } |
15 | 14 |
16 // This interface is implemented by observers of GeolocationProvider as | 15 // This interface is implemented by observers of GeolocationProvider as |
17 // well as GeolocationProvider itself as an observer of GeolocationArbitrator. | 16 // well as GeolocationProvider itself as an observer of GeolocationArbitrator. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 49 |
51 // Collapse options with another instance so that both are satisfied. | 50 // Collapse options with another instance so that both are satisfied. |
52 void Collapse(const GeolocationObserverOptions& other) { | 51 void Collapse(const GeolocationObserverOptions& other) { |
53 use_high_accuracy = use_high_accuracy | other.use_high_accuracy; | 52 use_high_accuracy = use_high_accuracy | other.use_high_accuracy; |
54 } | 53 } |
55 | 54 |
56 bool use_high_accuracy; | 55 bool use_high_accuracy; |
57 }; | 56 }; |
58 | 57 |
59 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ | 58 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_OBSERVER_H_ |
OLD | NEW |