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

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

Issue 3027042: Speculative fix for chromium-os:4706 - use singleton NetworkLibrary rather than create our own (Closed)
Patch Set: Rebase Created 10 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
« no previous file with comments | « no previous file | chrome/browser/geolocation/wifi_data_provider_chromeos.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) 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 #ifndef CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
6 #define CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 6 #define CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/geolocation/wifi_data_provider_common.h" 9 #include "chrome/browser/geolocation/wifi_data_provider_common.h"
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 12
13 namespace chromeos { class NetworkLibrary; } 13 namespace chromeos { class NetworkLibrary; }
14 14
15 class WifiDataProviderChromeOs : public WifiDataProviderCommon { 15 class WifiDataProviderChromeOs : public WifiDataProviderCommon {
16 public: 16 public:
17 WifiDataProviderChromeOs(); 17 WifiDataProviderChromeOs();
18 18
19 // Allows injection of |lib| for testing. 19 // Allows injection of |lib| for testing.
20 static WlanApiInterface* NewWlanApi(chromeos::NetworkLibrary* lib); 20 static WlanApiInterface* NewWlanApi(chromeos::NetworkLibrary* lib);
21 21
22 private: 22 private:
23 virtual ~WifiDataProviderChromeOs(); 23 virtual ~WifiDataProviderChromeOs();
24 24
25 // WifiDataProviderCommon 25 // WifiDataProviderCommon
26 virtual WlanApiInterface* NewWlanApi(); 26 virtual WlanApiInterface* NewWlanApi();
27 virtual PollingPolicyInterface* NewPollingPolicy(); 27 virtual PollingPolicyInterface* NewPollingPolicy();
28 28
29 scoped_ptr<chromeos::NetworkLibrary> network_library_;
30
31 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs); 29 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs);
32 }; 30 };
33 31
34 #endif // CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 32 #endif // CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/geolocation/wifi_data_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698