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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 10826225: Clean-up inline members of nested classes (chrome/browser/chromeos/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgotten files Created 8 years, 4 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 | Annotate | Revision Log
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 "chrome/browser/chromeos/cros/network_library.h" 5 #include "chrome/browser/chromeos/cros/network_library.h"
6 6
7 #include <dbus/dbus-glib.h> 7 #include <dbus/dbus-glib.h>
8 8
9 #include "base/i18n/icu_encoding_detection.h" 9 #include "base/i18n/icu_encoding_detection.h"
10 #include "base/i18n/icu_string_conversions.h" 10 #include "base/i18n/icu_string_conversions.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 type_(type) { 231 type_(type) {
232 } 232 }
233 233
234 Network::~Network() { 234 Network::~Network() {
235 for (PropertyMap::const_iterator props = property_map_.begin(); 235 for (PropertyMap::const_iterator props = property_map_.begin();
236 props != property_map_.end(); ++props) { 236 props != property_map_.end(); ++props) {
237 delete props->second; 237 delete props->second;
238 } 238 }
239 } 239 }
240 240
241 Network::ProxyOncConfig::ProxyOncConfig() : type(PROXY_ONC_DIRECT) {}
242
241 void Network::SetNetworkParser(NetworkParser* parser) { 243 void Network::SetNetworkParser(NetworkParser* parser) {
242 network_parser_.reset(parser); 244 network_parser_.reset(parser);
243 } 245 }
244 246
245 void Network::UpdatePropertyMap(PropertyIndex index, const base::Value* value) { 247 void Network::UpdatePropertyMap(PropertyIndex index, const base::Value* value) {
246 if (!value) { 248 if (!value) {
247 // Clear the property if |value| is NULL. 249 // Clear the property if |value| is NULL.
248 PropertyMap::iterator iter(property_map_.find(index)); 250 PropertyMap::iterator iter(property_map_.find(index));
249 if (iter != property_map_.end()) { 251 if (iter != property_map_.end()) {
250 delete iter->second; 252 delete iter->second;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1314
1313 void WimaxNetwork::SetEAPIdentity(const std::string& identity) { 1315 void WimaxNetwork::SetEAPIdentity(const std::string& identity) {
1314 SetOrClearStringProperty( 1316 SetOrClearStringProperty(
1315 flimflam::kEapIdentityProperty, identity, &eap_identity_); 1317 flimflam::kEapIdentityProperty, identity, &eap_identity_);
1316 } 1318 }
1317 1319
1318 void WimaxNetwork::CalculateUniqueId() { 1320 void WimaxNetwork::CalculateUniqueId() {
1319 set_unique_id(name() + "|" + eap_identity()); 1321 set_unique_id(name() + "|" + eap_identity());
1320 } 1322 }
1321 1323
1324 NetworkLibrary::EAPConfigData::EAPConfigData()
1325 : method(EAP_METHOD_UNKNOWN),
1326 auth(EAP_PHASE_2_AUTH_AUTO),
1327 use_system_cas(true) {
1328 }
1329
1330 NetworkLibrary::EAPConfigData::~EAPConfigData() {}
1331
1332 NetworkLibrary::VPNConfigData::VPNConfigData() {}
1333
1334 NetworkLibrary::VPNConfigData::~VPNConfigData() {}
1335
1322 // static 1336 // static
1323 NetworkLibrary* NetworkLibrary::GetImpl(bool stub) { 1337 NetworkLibrary* NetworkLibrary::GetImpl(bool stub) {
1324 NetworkLibrary* impl; 1338 NetworkLibrary* impl;
1325 if (stub) 1339 if (stub)
1326 impl = new NetworkLibraryImplStub(); 1340 impl = new NetworkLibraryImplStub();
1327 else 1341 else
1328 impl = new NetworkLibraryImplCros(); 1342 impl = new NetworkLibraryImplCros();
1329 impl->Init(); 1343 impl->Init();
1330 return impl; 1344 return impl;
1331 } 1345 }
1332 1346
1333 } // namespace chromeos 1347 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/cros/network_library_impl_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698