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

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

Issue 2975483002: [CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether c… (Closed)
Patch Set: hansberry@ comment. Created 3 years, 5 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_ 5 #ifndef CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_
6 #define CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_ 6 #define CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_
7 7
8 namespace chromeos { 8 namespace chromeos {
9 9
10 namespace tether { 10 namespace tether {
(...skipping 21 matching lines...) Expand all
32 extern const char kActiveHostDeviceId[]; 32 extern const char kActiveHostDeviceId[];
33 33
34 // The tether network GUID of the active host. If there is no active host, the 34 // The tether network GUID of the active host. If there is no active host, the
35 // value at this key is "". 35 // value at this key is "".
36 extern const char kTetherNetworkGuid[]; 36 extern const char kTetherNetworkGuid[];
37 37
38 // The Wi-Fi network GUID of the active host. If there is no active host, the 38 // The Wi-Fi network GUID of the active host. If there is no active host, the
39 // value at this key is "". 39 // value at this key is "".
40 extern const char kWifiNetworkGuid[]; 40 extern const char kWifiNetworkGuid[];
41 41
42 // The Wi-Fi network GUID that is currently being disconnected. When
43 // disconnecting under normal circumstances, this value is set when a
44 // disconnection is initiated and is cleared when a disconnection completes.
45 // However, when a disconnection is triggered by the user logging out, the
46 // disconnection flow cannot complete before Chrome shuts down (due to the
47 // asynchronous nature of the network stack), so this GUID remains in prefs.
48 // When the Tether component starts up again (the next time the user logs in),
49 // this GUID is fetched, the associated network configuration is removed, and
50 // the GUID is cleared from prefs.
51 extern const char kDisconnectingWifiNetworkGuid[];
52
42 } // namespace prefs 53 } // namespace prefs
43 54
44 } // namespace tether 55 } // namespace tether
45 56
46 } // namespace chromeos 57 } // namespace chromeos
47 58
48 #endif // CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_ 59 #endif // CHROMEOS_COMPONENTS_TETHER_PREF_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698