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

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

Issue 5861001: Activation process improvements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 bool auto_connect) = 0; 571 bool auto_connect) = 0;
572 572
573 // Connect to the specified cellular network. 573 // Connect to the specified cellular network.
574 // Returns false if the attempt fails immediately. 574 // Returns false if the attempt fails immediately.
575 virtual bool ConnectToCellularNetwork(const CellularNetwork* network) = 0; 575 virtual bool ConnectToCellularNetwork(const CellularNetwork* network) = 0;
576 576
577 // Initiates cellular data plan refresh. Plan data will be passed through 577 // Initiates cellular data plan refresh. Plan data will be passed through
578 // Network::Observer::CellularDataPlanChanged callback. 578 // Network::Observer::CellularDataPlanChanged callback.
579 virtual void RefreshCellularDataPlans(const CellularNetwork* network) = 0; 579 virtual void RefreshCellularDataPlans(const CellularNetwork* network) = 0;
580 580
581 // Records information that cellular play payment had happened.
582 virtual void SignalCellularPlanPayment() = 0;
Charlie Lee 2011/01/14 23:53:23 Do you need to add these methods to mock_network_l
zel 2011/01/15 00:42:32 Done.
583
584 // Returns true if cellular plan payment had been recorded recently.
585 virtual bool HasRecentCellularPlanPayment() = 0;
586
581 // Disconnect from the specified wireless (either cellular or wifi) network. 587 // Disconnect from the specified wireless (either cellular or wifi) network.
582 virtual void DisconnectFromWirelessNetwork( 588 virtual void DisconnectFromWirelessNetwork(
583 const WirelessNetwork* network) = 0; 589 const WirelessNetwork* network) = 0;
584 590
585 // Save network information including passwords (wifi) and auto-connect. 591 // Save network information including passwords (wifi) and auto-connect.
586 virtual void SaveCellularNetwork(const CellularNetwork* network) = 0; 592 virtual void SaveCellularNetwork(const CellularNetwork* network) = 0;
587 virtual void SaveWifiNetwork(const WifiNetwork* network) = 0; 593 virtual void SaveWifiNetwork(const WifiNetwork* network) = 0;
588 594
589 // Forget the wifi network corresponding to service_path. 595 // Forget the wifi network corresponding to service_path.
590 virtual void ForgetWifiNetwork(const std::string& service_path) = 0; 596 virtual void ForgetWifiNetwork(const std::string& service_path) = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 virtual std::string GetHtmlInfo(int refresh) = 0; 634 virtual std::string GetHtmlInfo(int refresh) = 0;
629 635
630 // Factory function, creates a new instance and returns ownership. 636 // Factory function, creates a new instance and returns ownership.
631 // For normal usage, access the singleton via CrosLibrary::Get(). 637 // For normal usage, access the singleton via CrosLibrary::Get().
632 static NetworkLibrary* GetImpl(bool stub); 638 static NetworkLibrary* GetImpl(bool stub);
633 }; 639 };
634 640
635 } // namespace chromeos 641 } // namespace chromeos
636 642
637 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 643 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698