| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // cancelled. | 180 // cancelled. |
| 181 bool DetectionTimeoutIsCancelledForTesting() const; | 181 bool DetectionTimeoutIsCancelledForTesting() const; |
| 182 | 182 |
| 183 // Returns timeout for current (or immediate) detection attempt. | 183 // Returns timeout for current (or immediate) detection attempt. |
| 184 // The following rules are used for timeout computation: | 184 // The following rules are used for timeout computation: |
| 185 // * if default (active) network is NULL, kBaseRequestTimeoutSec is used | 185 // * if default (active) network is NULL, kBaseRequestTimeoutSec is used |
| 186 // * if lazy detection mode is enabled, kLazyRequestTimeoutSec is used | 186 // * if lazy detection mode is enabled, kLazyRequestTimeoutSec is used |
| 187 // * otherwise, timeout equals to |attempt_count_| * kBaseRequestTimeoutSec | 187 // * otherwise, timeout equals to |attempt_count_| * kBaseRequestTimeoutSec |
| 188 int GetRequestTimeoutSec() const; | 188 int GetRequestTimeoutSec() const; |
| 189 | 189 |
| 190 // Name of the default network. |
| 191 std::string default_network_name_; |
| 192 |
| 190 // Unique identifier of the default network. | 193 // Unique identifier of the default network. |
| 191 std::string default_network_id_; | 194 std::string default_network_id_; |
| 192 | 195 |
| 193 // Service path of the default network. | 196 // Service path of the default network. |
| 194 std::string default_service_path_; | 197 std::string default_service_path_; |
| 195 | 198 |
| 196 // Connection state of the default network. | 199 // Connection state of the default network. |
| 197 std::string default_connection_state_; | 200 std::string default_connection_state_; |
| 198 | 201 |
| 199 State state_; | 202 State state_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 bool request_timeout_for_testing_initialized_; | 249 bool request_timeout_for_testing_initialized_; |
| 247 | 250 |
| 248 content::NotificationRegistrar registrar_; | 251 content::NotificationRegistrar registrar_; |
| 249 | 252 |
| 250 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); | 253 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); |
| 251 }; | 254 }; |
| 252 | 255 |
| 253 } // namespace chromeos | 256 } // namespace chromeos |
| 254 | 257 |
| 255 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 258 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
| OLD | NEW |