Lines Matching defs:cros
24 #include "chrome/browser/chromeos/cros/cros_library.h"
320 chromeos::NetworkLibrary* cros =
322 FillNetworkInfo(localized_strings, cros);
328 chromeos::NetworkLibrary* cros =
330 cros->RequestNetworkScan();
369 chromeos::NetworkLibrary* cros =
371 cros->EnableWifiNetworkDevice(true);
375 chromeos::NetworkLibrary* cros =
377 cros->EnableWifiNetworkDevice(false);
381 chromeos::NetworkLibrary* cros =
383 const chromeos::NetworkDevice* cellular = cros->FindCellularDevice();
386 cros->EnableCellularNetworkDevice(true);
389 cros->EnableCellularNetworkDevice(true);
397 chromeos::NetworkLibrary* cros =
399 cros->EnableCellularNetworkDevice(false);
425 chromeos::NetworkLibrary* cros =
428 cros->FindCellularNetworkByPath(service_path);
460 chromeos::NetworkLibrary* cros) {
462 FillNetworkInfo(&dictionary, cros);
468 chromeos::NetworkLibrary* cros) {
471 MonitorNetworks(cros);
472 RefreshNetworkData(cros);
476 chromeos::NetworkLibrary* cros,
479 RefreshNetworkData(cros);
490 void InternetOptionsHandler::MonitorNetworks(chromeos::NetworkLibrary* cros) {
491 cros->RemoveObserverForAllNetworks(this);
492 const chromeos::WifiNetwork* wifi_network = cros->wifi_network();
494 cros->AddNetworkObserver(wifi_network->service_path(), this);
499 cros->cellular_networks();
502 cros->AddNetworkObserver(cell_network->service_path(), this);
507 chromeos::NetworkLibrary* cros) {
510 const chromeos::CellularNetwork* cellular = cros->cellular_network();
514 cros->GetDataPlans(cellular->service_path());
550 chromeos::NetworkLibrary* cros =
553 FillNetworkInfo(&dictionary, cros);
590 chromeos::NetworkLibrary* cros =
592 chromeos::WifiNetwork* network = cros->FindWifiNetworkByPath(service_path);
602 const chromeos::Network* net, chromeos::NetworkLibrary* cros) {
606 chromeos::NetworkIPConfigVector ipconfigs = cros->GetIPConfigs(
633 cros->FindWifiNetworkByPath(net->service_path());
641 cros->FindCellularNetworkByPath(net->service_path());
645 PopulateCellularDetails(cros, cellular, &dictionary);
649 cros->FindVirtualNetworkByPath(net->service_path());
670 chromeos::NetworkLibrary* cros,
707 cros->FindNetworkDeviceByPath(cellular->device_path());
727 std::string carrier_id = cros->GetCellularHomeCarrierId();
768 chromeos::NetworkLibrary* cros =
770 cros->ConnectToWifiNetwork(service_path);
783 chromeos::NetworkLibrary* cros =
785 chromeos::WifiNetwork* network = cros->FindWifiNetworkByPath(service_path);
790 cros->ConnectToWifiNetwork(network);
818 chromeos::NetworkLibrary* cros =
821 cros->ConnectToWifiNetwork(sec, ssid, password, std::string(), std::string());
854 chromeos::NetworkLibrary* cros =
856 const chromeos::EthernetNetwork* ether = cros->ethernet_network();
857 PopulateDictionaryDetails(ether, cros);
872 chromeos::NetworkLibrary* cros =
880 cros->ForgetWifiNetwork(service_path);
884 } else if ((wifi = cros->FindWifiNetworkByPath(service_path))) {
890 PopulateDictionaryDetails(wifi, cros);
901 cros->ConnectToWifiNetwork(wifi);
904 cros->DisconnectFromNetwork(wifi);
906 PopulateDictionaryDetails(wifi, cros);
914 chromeos::NetworkLibrary* cros =
919 } else if ((cellular = cros->FindCellularNetworkByPath(service_path))) {
921 cros->ConnectToCellularNetwork(cellular);
923 cros->DisconnectFromNetwork(cellular);
929 PopulateDictionaryDetails(cellular, cros);
937 chromeos::NetworkLibrary* cros =
944 } else if ((network = cros->FindVirtualNetworkByPath(service_path))) {
954 cros->ConnectToVirtualNetwork(network);
957 cros->DisconnectFromNetwork(network);
959 PopulateDictionaryDetails(network, cros);
971 chromeos::NetworkLibrary* cros =
974 cros->FindCellularNetworkByPath(service_path);
1044 chromeos::NetworkLibrary* cros =
1050 if (cros->ethernet_enabled()) {
1052 cros->ethernet_network();
1078 chromeos::NetworkLibrary* cros =
1083 const chromeos::Network* active_network = cros->active_network();
1084 bool has_vpn = active_network && cros->virtual_network();
1087 const chromeos::WifiNetworkVector& wifi_networks = cros->wifi_networks();
1112 if (cros->wifi_enabled()) {
1129 cros->cellular_networks();
1155 const chromeos::NetworkDevice* cellular_device = cros->FindCellularDevice();
1157 cros->cellular_enabled()) {
1175 chromeos::NetworkLibrary* cros =
1181 cros->remembered_wifi_networks();
1182 const chromeos::Network* active_network = cros->active_network();
1183 bool vpn_on_wireless = active_network && cros->virtual_network() &&
1190 chromeos::Network* network = cros->FindNetworkFromRemembered(remembered);
1221 DictionaryValue* dictionary, chromeos::NetworkLibrary* cros) {
1222 dictionary->SetBoolean("accessLocked", cros->IsLocked());
1226 dictionary->SetBoolean("wifiAvailable", cros->wifi_available());
1227 dictionary->SetBoolean("wifiEnabled", cros->wifi_enabled());
1228 dictionary->SetBoolean("cellularAvailable", cros->cellular_available());
1229 dictionary->SetBoolean("cellularEnabled", cros->cellular_enabled());