Chromium Code Reviews| Index: net/base/wifi_access_point_info_provider_stub.cc |
| diff --git a/net/base/wifi_access_point_info_provider_stub.cc b/net/base/wifi_access_point_info_provider_stub.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5d7675e43906041fc5313de9114d0d54c70ed0b7 |
| --- /dev/null |
| +++ b/net/base/wifi_access_point_info_provider_stub.cc |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Stub implementation for non-chromeos platforms. |
| +#if !defined(OS_CHROMEOS) |
| +#include "net/base/wifi_access_point_info_provider.h" |
| + |
| +namespace net { |
| + |
| +// Stub implementation of the WifiAccessPointInfoProvider interface. |
| +class WifiAccessPointInfoProviderStub : public WifiAccessPointInfoProvider { |
| + public: |
| + WifiAccessPointInfoProviderStub() {} |
| + virtual ~WifiAccessPointInfoProviderStub() {} |
| + |
| + virtual bool GetInfo(net::WifiAccessPointInfo *info) |
| + OVERRIDE { |
|
stevenjb
2014/07/23 20:03:36
One line
zqiu1
2014/07/23 21:48:40
Done.
|
| + NOTIMPLEMENTED(); |
| + return false; |
| + } |
| +}; |
| + |
| +// static |
| +scoped_ptr<WifiAccessPointInfoProvider> WifiAccessPointInfoProvider::Create() { |
| + return scoped_ptr<WifiAccessPointInfoProvider>( |
| + new WifiAccessPointInfoProviderStub()); |
| +} |
|
stevenjb
2014/07/23 20:03:36
So, this mechanism of using a static Create method
zqiu1
2014/07/23 21:48:40
Done.
|
| + |
| +} // namespace net |
| +#endif // OS_CHROMEOS |