OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/browser_thread.h" | |
18 #include "chrome/browser/chromeos/network_login_observer.h" | 17 #include "chrome/browser/chromeos/network_login_observer.h" |
19 #include "chrome/browser/chromeos/cros/cros_library.h" | 18 #include "chrome/browser/chromeos/cros/cros_library.h" |
20 #include "chrome/browser/chromeos/login/user_manager.h" | 19 #include "chrome/browser/chromeos/login/user_manager.h" |
21 #include "chrome/common/time_format.h" | 20 #include "chrome/common/time_format.h" |
| 21 #include "content/browser/browser_thread.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
26 // Implementation notes. | 26 // Implementation notes. |
27 // NetworkLibraryImpl manages a series of classes that describe network devices | 27 // NetworkLibraryImpl manages a series of classes that describe network devices |
28 // and services: | 28 // and services: |
29 // | 29 // |
30 // NetworkDevice: e.g. ethernet, wifi modem, cellular modem | 30 // NetworkDevice: e.g. ethernet, wifi modem, cellular modem |
31 // device_map_: canonical map<name,NetworkDevice*> for devices | 31 // device_map_: canonical map<name,NetworkDevice*> for devices |
(...skipping 2736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 return new NetworkLibraryStubImpl(); | 2768 return new NetworkLibraryStubImpl(); |
2769 else | 2769 else |
2770 return new NetworkLibraryImpl(); | 2770 return new NetworkLibraryImpl(); |
2771 } | 2771 } |
2772 | 2772 |
2773 } // namespace chromeos | 2773 } // namespace chromeos |
2774 | 2774 |
2775 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 2775 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
2776 // won't be deleted until it's last InvokeLater is run. | 2776 // won't be deleted until it's last InvokeLater is run. |
2777 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImpl); | 2777 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImpl); |
OLD | NEW |