Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Stub implementation for non-chromeos platforms. | |
| 6 #if !defined(OS_CHROMEOS) | |
| 7 #include "net/base/wifi_access_point_info_provider.h" | |
| 8 | |
| 9 namespace net { | |
| 10 | |
| 11 // Stub implementation of the WifiAccessPointInfoProvider interface. | |
| 12 class WifiAccessPointInfoProviderStub : public WifiAccessPointInfoProvider { | |
| 13 public: | |
| 14 WifiAccessPointInfoProviderStub() {} | |
| 15 virtual ~WifiAccessPointInfoProviderStub() {} | |
| 16 | |
| 17 virtual bool GetInfo(net::WifiAccessPointInfo *info) | |
| 18 OVERRIDE { | |
|
stevenjb
2014/07/23 20:03:36
One line
zqiu1
2014/07/23 21:48:40
Done.
| |
| 19 NOTIMPLEMENTED(); | |
| 20 return false; | |
| 21 } | |
| 22 }; | |
| 23 | |
| 24 // static | |
| 25 scoped_ptr<WifiAccessPointInfoProvider> WifiAccessPointInfoProvider::Create() { | |
| 26 return scoped_ptr<WifiAccessPointInfoProvider>( | |
| 27 new WifiAccessPointInfoProviderStub()); | |
| 28 } | |
|
stevenjb
2014/07/23 20:03:36
So, this mechanism of using a static Create method
zqiu1
2014/07/23 21:48:40
Done.
| |
| 29 | |
| 30 } // namespace net | |
| 31 #endif // OS_CHROMEOS | |
| OLD | NEW |