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

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

Issue 99223009: Fixed current OOBE captive portal metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 12 months 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 // Record detection stats such as detection duration and detection
191 // result in UMA.
192 void RecordDetectionStats(const NetworkState* network,
193 CaptivePortalStatus status);
194
190 // Name of the default network. 195 // Name of the default network.
191 std::string default_network_name_; 196 std::string default_network_name_;
192 197
193 // Unique identifier of the default network. 198 // Unique identifier of the default network.
194 std::string default_network_id_; 199 std::string default_network_id_;
195 200
196 // Service path of the default network. 201 // Service path of the default network.
197 std::string default_service_path_; 202 std::string default_service_path_;
198 203
199 // Connection state of the default network. 204 // Connection state of the default network.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool request_timeout_for_testing_initialized_; 254 bool request_timeout_for_testing_initialized_;
250 255
251 content::NotificationRegistrar registrar_; 256 content::NotificationRegistrar registrar_;
252 257
253 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); 258 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl);
254 }; 259 };
255 260
256 } // namespace chromeos 261 } // namespace chromeos
257 262
258 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ 263 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698