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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIFI_DATA_PROVIDER_CHROMEOS_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/browser/geolocation/wifi_data_provider.h" 12 #include "content/browser/geolocation/wifi_data_provider.h"
12 #include "content/browser/geolocation/wifi_polling_policy.h" 13 #include "content/browser/geolocation/wifi_polling_policy.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 class CONTENT_EXPORT WifiDataProviderChromeOs : public WifiDataProvider { 17 class CONTENT_EXPORT WifiDataProviderChromeOs : public WifiDataProvider {
17 public: 18 public:
18 WifiDataProviderChromeOs(); 19 WifiDataProviderChromeOs();
19 20
20 // WifiDataProvider 21 // WifiDataProvider
(...skipping 19 matching lines...) Expand all
40 // Will schedule starting of the scanning process. 41 // Will schedule starting of the scanning process.
41 void ScheduleStart(); 42 void ScheduleStart();
42 43
43 // Will schedule stopping of the scanning process. 44 // Will schedule stopping of the scanning process.
44 void ScheduleStop(); 45 void ScheduleStop();
45 46
46 // Get access point data from chromeos. 47 // Get access point data from chromeos.
47 bool GetAccessPointData(WifiData::AccessPointDataSet* data); 48 bool GetAccessPointData(WifiData::AccessPointDataSet* data);
48 49
49 // Controls the polling update interval. (client thread) 50 // Controls the polling update interval. (client thread)
50 scoped_ptr<WifiPollingPolicy> polling_policy_; 51 std::unique_ptr<WifiPollingPolicy> polling_policy_;
51 52
52 // The latest wifi data. (client thread) 53 // The latest wifi data. (client thread)
53 WifiData wifi_data_; 54 WifiData wifi_data_;
54 55
55 // Whether we have strated the data provider. (client thread) 56 // Whether we have strated the data provider. (client thread)
56 bool started_; 57 bool started_;
57 58
58 // Whether we've successfully completed a scan for WiFi data. (client thread) 59 // Whether we've successfully completed a scan for WiFi data. (client thread)
59 bool is_first_scan_complete_; 60 bool is_first_scan_complete_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs); 62 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs);
62 }; 63 };
63 64
64 } // namespace content 65 } // namespace content
65 66
66 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 67 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/network_location_request.cc ('k') | content/browser/geolocation/wifi_data_provider_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698