| 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_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ |
| 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ | 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // ProxyConfigService: | 54 // ProxyConfigService: |
| 55 // Called only on the network thread. | 55 // Called only on the network thread. |
| 56 virtual void AddObserver(Observer* observer) OVERRIDE; | 56 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 57 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 57 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
| 58 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE; | 58 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 friend class ProxyConfigServiceAndroidTestBase; | 61 friend class ProxyConfigServiceAndroidTestBase; |
| 62 class Delegate; | 62 class Delegate; |
| 63 | 63 |
| 64 | |
| 65 // For tests. | 64 // For tests. |
| 66 ProxyConfigServiceAndroid(base::SequencedTaskRunner* network_task_runner, | 65 ProxyConfigServiceAndroid(base::SequencedTaskRunner* network_task_runner, |
| 67 base::SequencedTaskRunner* jni_task_runner, | 66 base::SequencedTaskRunner* jni_task_runner, |
| 68 GetPropertyCallback get_property_callback); | 67 GetPropertyCallback get_property_callback); |
| 69 | 68 |
| 70 // For tests. | 69 // For tests. |
| 71 void ProxySettingsChanged(); | 70 void ProxySettingsChanged(); |
| 72 | 71 |
| 73 scoped_refptr<Delegate> delegate_; | 72 scoped_refptr<Delegate> delegate_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceAndroid); | 74 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceAndroid); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace net | 77 } // namespace net |
| 79 | 78 |
| 80 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ | 79 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ |
| OLD | NEW |