OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #ifndef CHROMEOS_COMPONENTS_TETHER_DEVICE_ID_TETHER_NETWORK_GUID_MAP_H_ |
| 6 #define CHROMEOS_COMPONENTS_TETHER_DEVICE_ID_TETHER_NETWORK_GUID_MAP_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 namespace tether { |
| 15 |
| 16 // Keeps a mapping between device ID and the tether network GUID associated with |
| 17 // tethering to that device. |
| 18 // TODO(hansberry): Currently, this class is stubbed out by simply returning the |
| 19 // same value for both device ID and tether network GUID. |
| 20 // Figure out a real mapping system. |
| 21 class DeviceIdTetherNetworkGuidMap { |
| 22 public: |
| 23 DeviceIdTetherNetworkGuidMap(); |
| 24 virtual ~DeviceIdTetherNetworkGuidMap(); |
| 25 |
| 26 // Returns the device ID for a given tether network GUID. |
| 27 virtual std::string GetDeviceIdForTetherNetworkGuid( |
| 28 const std::string& tether_network_guid); |
| 29 |
| 30 // Returns the tether network GUID for a given device ID. |
| 31 virtual std::string GetTetherNetworkGuidForDeviceId( |
| 32 const std::string& device_id); |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(DeviceIdTetherNetworkGuidMap); |
| 36 }; |
| 37 |
| 38 } // namespace tether |
| 39 |
| 40 } // namespace chromeos |
| 41 |
| 42 #endif // CHROMEOS_COMPONENTS_TETHER_DEVICE_ID_TETHER_NETWORK_GUID_MAP_H_ |
OLD | NEW |