Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/chromeos/net/network_portal_detector_impl.h

Issue 59913004: Fixed logging for network portal detector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/net/network_portal_detector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698