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

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

Issue 10824242: This adds Cros API for calling the "Refresh" function on shill's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_impl_stub.h" 5 #include "chrome/browser/chromeos/cros/network_library_impl_stub.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 connect_delay_ms_ = kConnectDelayMs; 634 connect_delay_ms_ = kConnectDelayMs;
635 SignalNetworkManagerObservers(); 635 SignalNetworkManagerObservers();
636 } 636 }
637 637
638 bool NetworkLibraryImplStub::GetWifiAccessPoints( 638 bool NetworkLibraryImplStub::GetWifiAccessPoints(
639 WifiAccessPointVector* result) { 639 WifiAccessPointVector* result) {
640 *result = WifiAccessPointVector(); 640 *result = WifiAccessPointVector();
641 return true; 641 return true;
642 } 642 }
643 643
644 void NetworkLibraryImplStub::RefreshIPConfig(Network* network) {
645 }
646
644 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) { 647 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) {
645 // Update the network state here since no network manager in stub impl. 648 // Update the network state here since no network manager in stub impl.
646 Network* modify_network = const_cast<Network*>(network); 649 Network* modify_network = const_cast<Network*>(network);
647 modify_network->set_is_active(false); 650 modify_network->set_is_active(false);
648 modify_network->set_disconnected(); 651 modify_network->set_disconnected();
649 if (network == active_wifi_) 652 if (network == active_wifi_)
650 active_wifi_ = NULL; 653 active_wifi_ = NULL;
651 else if (network == active_cellular_) 654 else if (network == active_cellular_)
652 active_cellular_ = NULL; 655 active_cellular_ = NULL;
653 else if (network == active_virtual_) 656 else if (network == active_virtual_)
(...skipping 16 matching lines...) Expand all
670 HardwareAddressFormat format) { 673 HardwareAddressFormat format) {
671 *hardware_address = hardware_address_; 674 *hardware_address = hardware_address_;
672 return ip_configs_; 675 return ip_configs_;
673 } 676 }
674 677
675 void NetworkLibraryImplStub::SetIPConfig(const NetworkIPConfig& ipconfig) { 678 void NetworkLibraryImplStub::SetIPConfig(const NetworkIPConfig& ipconfig) {
676 ip_configs_.push_back(ipconfig); 679 ip_configs_.push_back(ipconfig);
677 } 680 }
678 681
679 } // namespace chromeos 682 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698