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

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

Issue 504443003: Fix comment to match implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PROVIDER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 AddLocationUpdateCallback(const LocationUpdateCallback& callback, 30 AddLocationUpdateCallback(const LocationUpdateCallback& callback,
31 bool use_high_accuracy) OVERRIDE; 31 bool use_high_accuracy) OVERRIDE;
32 virtual void UserDidOptIntoLocationServices() OVERRIDE; 32 virtual void UserDidOptIntoLocationServices() OVERRIDE;
33 virtual void OverrideLocationForTesting(const Geoposition& position) OVERRIDE; 33 virtual void OverrideLocationForTesting(const Geoposition& position) OVERRIDE;
34 34
35 // Callback from the LocationArbitrator. Public for testing. 35 // Callback from the LocationArbitrator. Public for testing.
36 void OnLocationUpdate(const Geoposition& position); 36 void OnLocationUpdate(const Geoposition& position);
37 37
38 // Gets a pointer to the singleton instance of the location relayer, which 38 // Gets a pointer to the singleton instance of the location relayer, which
39 // is in turn bound to the browser's global context objects. This must only be 39 // is in turn bound to the browser's global context objects. This must only be
40 // called on the IO thread so that the GeolocationProviderImpl is always 40 // called on the UI thread so that the GeolocationProviderImpl is always
41 // instantiated on the same thread. Ownership is NOT returned. 41 // instantiated on the same thread. Ownership is NOT returned.
42 static GeolocationProviderImpl* GetInstance(); 42 static GeolocationProviderImpl* GetInstance();
43 43
44 bool user_did_opt_into_location_services_for_testing() { 44 bool user_did_opt_into_location_services_for_testing() {
45 return user_did_opt_into_location_services_; 45 return user_did_opt_into_location_services_;
46 } 46 }
47 47
48 protected: 48 protected:
49 friend struct DefaultSingletonTraits<GeolocationProviderImpl>; 49 friend struct DefaultSingletonTraits<GeolocationProviderImpl>;
50 GeolocationProviderImpl(); 50 GeolocationProviderImpl();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Only to be used on the geolocation thread. 90 // Only to be used on the geolocation thread.
91 LocationArbitrator* arbitrator_; 91 LocationArbitrator* arbitrator_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); 93 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl);
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ 98 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698