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

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

Issue 2098553002: Geolocation: extract ContentBrowserClient methods specific to Geolocation into a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO Created 4 years, 5 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
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 <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 base::CallbackList<void(const Geoposition&)> high_accuracy_callbacks_; 85 base::CallbackList<void(const Geoposition&)> high_accuracy_callbacks_;
86 base::CallbackList<void(const Geoposition&)> low_accuracy_callbacks_; 86 base::CallbackList<void(const Geoposition&)> low_accuracy_callbacks_;
87 87
88 bool user_did_opt_into_location_services_; 88 bool user_did_opt_into_location_services_;
89 Geoposition position_; 89 Geoposition position_;
90 90
91 // True only in testing, where we want to use a custom position. 91 // True only in testing, where we want to use a custom position.
92 bool ignore_location_updates_; 92 bool ignore_location_updates_;
93 93
94 // The system provided Delegate for the |arbitrator_|.
95 std::unique_ptr<GeolocationProvider::Delegate> delegate_;
96
94 // Only to be used on the geolocation thread. 97 // Only to be used on the geolocation thread.
95 std::unique_ptr<LocationArbitrator> arbitrator_; 98 std::unique_ptr<LocationArbitrator> arbitrator_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); 100 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl);
98 }; 101 };
99 102
100 } // namespace content 103 } // namespace content
101 104
102 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ 105 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | content/browser/geolocation/geolocation_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698