OLD | NEW |
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 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_ANDROID_H_ | 5 #ifndef NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_ANDROID_H_ |
6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_ANDROID_H_ | 6 #define NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/basictypes.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/observer_list_threadsafe.h" | 11 #include "base/observer_list_threadsafe.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 // Delegate used to thread-safely notify NetworkChangeNotifierAndroid whenever a | 18 // Delegate used to thread-safely notify NetworkChangeNotifierAndroid whenever a |
19 // network connection change notification is signaled by the Java side (on the | 19 // network connection change notification is signaled by the Java side (on the |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 mutable base::Lock connection_lock_; // Protects the state below. | 89 mutable base::Lock connection_lock_; // Protects the state below. |
90 ConnectionType connection_type_; | 90 ConnectionType connection_type_; |
91 double connection_max_bandwidth_; | 91 double connection_max_bandwidth_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierDelegateAndroid); | 93 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierDelegateAndroid); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace net | 96 } // namespace net |
97 | 97 |
98 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_H_ | 98 #endif // NET_ANDROID_NETWORK_CHANGE_NOTIFIER_DELEGATE_H_ |
OLD | NEW |