OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_CONTEXT_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_CONTEXT_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_CONTEXT_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
9 #include "content/browser/geolocation/geolocation_service_impl.h" | 10 #include "content/browser/geolocation/geolocation_service_impl.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 // Provides information to a set of GeolocationServiceImpl instances that are | 14 // Provides information to a set of GeolocationServiceImpl instances that are |
14 // associated with a given context. Notably, allows pausing and resuming | 15 // associated with a given context. Notably, allows pausing and resuming |
15 // geolocation on these instances. | 16 // geolocation on these instances. |
16 class GeolocationServiceContext { | 17 class GeolocationServiceContext { |
17 public: | 18 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 bool paused_; | 50 bool paused_; |
50 | 51 |
51 scoped_ptr<Geoposition> geoposition_override_; | 52 scoped_ptr<Geoposition> geoposition_override_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(GeolocationServiceContext); | 54 DISALLOW_COPY_AND_ASSIGN(GeolocationServiceContext); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace content | 57 } // namespace content |
57 | 58 |
58 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_CONTEXT_H_ | 59 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_SERVICE_CONTEXT_H_ |
OLD | NEW |