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

Side by Side Diff: content/browser/geolocation/core_location_provider_mac.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file declares a CoreLocation provider that runs on Mac OS X (10.6). 5 // This file declares a CoreLocation provider that runs on Mac OS X (10.6).
6 // Public for testing only - for normal usage this header should not be 6 // Public for testing only - for normal usage this header should not be
7 // required, as location_provider.h declares the needed factory function. 7 // required, as location_provider.h declares the needed factory function.
8 8
9 #ifndef CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_ 9 #ifndef CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_
10 #define CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_ 10 #define CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_
11 #pragma once 11 #pragma once
12 12
13 #include "content/browser/geolocation/location_provider.h" 13 #include "content/browser/geolocation/location_provider.h"
14 #include "content/common/geoposition.h" 14 #include "content/common/geoposition.h"
15 15
16 class CoreLocationDataProviderMac; 16 class CoreLocationDataProviderMac;
17 17
18 class CoreLocationProviderMac : public LocationProviderBase { 18 class CoreLocationProviderMac : public LocationProviderBase {
19 public: 19 public:
20 explicit CoreLocationProviderMac(); 20 explicit CoreLocationProviderMac();
21 ~CoreLocationProviderMac(); 21 virtual ~CoreLocationProviderMac();
22 22
23 // LocationProvider 23 // LocationProvider
24 virtual bool StartProvider(bool high_accuracy); 24 virtual bool StartProvider(bool high_accuracy);
25 virtual void StopProvider(); 25 virtual void StopProvider();
26 virtual void GetPosition(Geoposition* position); 26 virtual void GetPosition(Geoposition* position);
27 27
28 // Receives new positions and calls UpdateListeners 28 // Receives new positions and calls UpdateListeners
29 void SetPosition(Geoposition* position); 29 void SetPosition(Geoposition* position);
30 30
31 private: 31 private:
32 bool is_updating_; 32 bool is_updating_;
33 CoreLocationDataProviderMac* data_provider_; 33 CoreLocationDataProviderMac* data_provider_;
34 Geoposition position_; 34 Geoposition position_;
35 }; 35 };
36 36
37 #endif // CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_ 37 #endif // CONTENT_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/file_system/file_system_dispatcher_host.h ('k') | content/browser/geolocation/geolocation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698