OLD | NEW |
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> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/platform_thread.h" | 14 #include "base/platform_thread.h" |
15 #include "base/scoped_vector.h" | 15 #include "base/scoped_vector.h" |
16 #include "base/singleton.h" | 16 #include "base/singleton.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/timer.h" | 18 #include "base/timer.h" |
19 #include "cros/chromeos_network.h" | 19 #include "third_party/cros/chromeos_network.h" |
20 | 20 |
21 class Value; | 21 class Value; |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 // Cellular network is considered low data when less than 60 minues. | 25 // Cellular network is considered low data when less than 60 minues. |
26 static const int kCellularDataLowSecs = 60 * 60; | 26 static const int kCellularDataLowSecs = 60 * 60; |
27 | 27 |
28 // Cellular network is considered low data when less than 30 minues. | 28 // Cellular network is considered low data when less than 30 minues. |
29 static const int kCellularDataVeryLowSecs = 30 * 60; | 29 static const int kCellularDataVeryLowSecs = 30 * 60; |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 virtual std::string GetHtmlInfo(int refresh) = 0; | 629 virtual std::string GetHtmlInfo(int refresh) = 0; |
630 | 630 |
631 // Factory function, creates a new instance and returns ownership. | 631 // Factory function, creates a new instance and returns ownership. |
632 // For normal usage, access the singleton via CrosLibrary::Get(). | 632 // For normal usage, access the singleton via CrosLibrary::Get(). |
633 static NetworkLibrary* GetImpl(bool stub); | 633 static NetworkLibrary* GetImpl(bool stub); |
634 }; | 634 }; |
635 | 635 |
636 } // namespace chromeos | 636 } // namespace chromeos |
637 | 637 |
638 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 638 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |