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

Side by Side Diff: chromeos/components/tether/device_id_tether_network_guid_map.h

Issue 2792483002: [CrOS Tether] Create TetherConnector, which attempts to connect to a nearby tether host. (Closed)
Patch Set: hansberry@ comment. Created 3 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698