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

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

Issue 6347044: Only show notification for low 3g data for the last data-based plan.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 string16 GetPlanDesciption() const; 193 string16 GetPlanDesciption() const;
194 // Evaluates cellular plans status and returns warning string if it is near 194 // Evaluates cellular plans status and returns warning string if it is near
195 // expiration. 195 // expiration.
196 string16 GetRemainingWarning() const; 196 string16 GetRemainingWarning() const;
197 // Formats remaining plan data description. 197 // Formats remaining plan data description.
198 string16 GetDataRemainingDesciption() const; 198 string16 GetDataRemainingDesciption() const;
199 // Formats plan expiration description. 199 // Formats plan expiration description.
200 string16 GetPlanExpiration() const; 200 string16 GetPlanExpiration() const;
201 // Formats plan usage info. 201 // Formats plan usage info.
202 string16 GetUsageInfo() const; 202 string16 GetUsageInfo() const;
203 // Returns a unique string for this plan that can be used for comparisons.
204 std::string GetUniqueIdentifier() const;
203 base::TimeDelta remaining_time() const; 205 base::TimeDelta remaining_time() const;
204 int64 remaining_minutes() const; 206 int64 remaining_minutes() const;
205 int64 remaining_data() const; 207 int64 remaining_data() const;
206 int64 remaining_mbytes() const; 208 int64 remaining_mbytes() const;
207 std::string plan_name; 209 std::string plan_name;
208 CellularDataPlanType plan_type; 210 CellularDataPlanType plan_type;
209 base::Time update_time; 211 base::Time update_time;
210 base::Time plan_start_time; 212 base::Time plan_start_time;
211 base::Time plan_end_time; 213 base::Time plan_end_time;
212 int64 plan_data_bytes; 214 int64 plan_data_bytes;
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 virtual std::string GetHtmlInfo(int refresh) = 0; 646 virtual std::string GetHtmlInfo(int refresh) = 0;
645 647
646 // Factory function, creates a new instance and returns ownership. 648 // Factory function, creates a new instance and returns ownership.
647 // For normal usage, access the singleton via CrosLibrary::Get(). 649 // For normal usage, access the singleton via CrosLibrary::Get().
648 static NetworkLibrary* GetImpl(bool stub); 650 static NetworkLibrary* GetImpl(bool stub);
649 }; 651 };
650 652
651 } // namespace chromeos 653 } // namespace chromeos
652 654
653 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 655 #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