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

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

Issue 486203004: Clean up WifiDataProvider(Manager) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't delete the DCHECK Created 6 years, 4 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 | content/browser/geolocation/network_location_provider.cc » ('j') | 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_NETWORK_LOCATION_PROVIDER_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
6 #define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void StopProvider() OVERRIDE; 76 virtual void StopProvider() OVERRIDE;
77 virtual void GetPosition(Geoposition *position) OVERRIDE; 77 virtual void GetPosition(Geoposition *position) OVERRIDE;
78 virtual void RequestRefresh() OVERRIDE; 78 virtual void RequestRefresh() OVERRIDE;
79 virtual void OnPermissionGranted() OVERRIDE; 79 virtual void OnPermissionGranted() OVERRIDE;
80 80
81 private: 81 private:
82 // Satisfies a position request from cache or network. 82 // Satisfies a position request from cache or network.
83 void RequestPosition(); 83 void RequestPosition();
84 84
85 // Gets called when new wifi data is available. 85 // Gets called when new wifi data is available.
86 void OnWifiDataUpdate(WifiDataProviderManager* manager); 86 void OnWifiDataUpdate();
87 87
88 // Internal helper used by OnWifiDataUpdate. 88 // Internal helper used by OnWifiDataUpdate.
89 void OnWifiDataUpdated(); 89 void OnWifiDataUpdated();
90 90
91 bool IsStarted() const; 91 bool IsStarted() const;
92 92
93 void OnLocationResponse(const Geoposition& position, 93 void OnLocationResponse(const Geoposition& position,
94 bool server_error, 94 bool server_error,
95 const base::string16& access_token, 95 const base::string16& access_token,
96 const WifiData& wifi_data); 96 const WifiData& wifi_data);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // over the platform-dependent implementations. 136 // over the platform-dependent implementations.
137 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider( 137 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider(
138 AccessTokenStore* access_token_store, 138 AccessTokenStore* access_token_store,
139 net::URLRequestContextGetter* context, 139 net::URLRequestContextGetter* context,
140 const GURL& url, 140 const GURL& url,
141 const base::string16& access_token); 141 const base::string16& access_token);
142 142
143 } // namespace content 143 } // namespace content
144 144
145 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ 145 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/geolocation/network_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698