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

Side by Side Diff: chromeos/network/onc/onc_signature.cc

Issue 2844363003: [CrOS Tether] Add HasConnectedToHost property for Tether networks. (Closed)
Patch Set: Rebased. Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chromeos/network/onc/onc_signature.h" 5 #include "chromeos/network/onc/onc_signature.h"
6 6
7 #include "components/onc/onc_constants.h" 7 #include "components/onc/onc_constants.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 using base::Value; 10 using base::Value;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 {::onc::kRecommended, &kRecommendedSignature}, 165 {::onc::kRecommended, &kRecommendedSignature},
166 {::onc::ethernet::kAuthentication, &kStringSignature}, 166 {::onc::ethernet::kAuthentication, &kStringSignature},
167 {::onc::ethernet::kEAP, &kEAPSignature}, 167 {::onc::ethernet::kEAP, &kEAPSignature},
168 {NULL}}; 168 {NULL}};
169 169
170 const OncFieldSignature tether_fields[] = {{NULL}}; 170 const OncFieldSignature tether_fields[] = {{NULL}};
171 171
172 const OncFieldSignature tether_with_state_fields[] = { 172 const OncFieldSignature tether_with_state_fields[] = {
173 {::onc::tether::kBatteryPercentage, &kIntegerSignature}, 173 {::onc::tether::kBatteryPercentage, &kIntegerSignature},
174 {::onc::tether::kCarrier, &kStringSignature}, 174 {::onc::tether::kCarrier, &kStringSignature},
175 {::onc::tether::kHasConnectedToHost, &kBoolSignature},
175 {::onc::tether::kSignalStrength, &kIntegerSignature}, 176 {::onc::tether::kSignalStrength, &kIntegerSignature},
176 {NULL}}; 177 {NULL}};
177 178
178 const OncFieldSignature ipconfig_fields[] = { 179 const OncFieldSignature ipconfig_fields[] = {
179 {::onc::ipconfig::kGateway, &kStringSignature}, 180 {::onc::ipconfig::kGateway, &kStringSignature},
180 {::onc::ipconfig::kIPAddress, &kStringSignature}, 181 {::onc::ipconfig::kIPAddress, &kStringSignature},
181 {::onc::ipconfig::kNameServers, &kStringListSignature}, 182 {::onc::ipconfig::kNameServers, &kStringListSignature},
182 {::onc::ipconfig::kRoutingPrefix, &kIntegerSignature}, 183 {::onc::ipconfig::kRoutingPrefix, &kIntegerSignature},
183 {::onc::ipconfig::kSearchDomains, &kStringListSignature}, 184 {::onc::ipconfig::kSearchDomains, &kStringListSignature},
184 {::onc::ipconfig::kType, &kStringSignature}, 185 {::onc::ipconfig::kType, &kStringSignature},
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 if (&signature == entry->value_signature && 505 if (&signature == entry->value_signature &&
505 onc_field_name == entry->field_name) { 506 onc_field_name == entry->field_name) {
506 return true; 507 return true;
507 } 508 }
508 } 509 }
509 return false; 510 return false;
510 } 511 }
511 512
512 } // namespace onc 513 } // namespace onc
513 } // namespace chromeos 514 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_state_unittest.cc ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698