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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl.h

Issue 1353933002: NetworkPortalDetectorInterface class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@portal_refactor
Patch Set: rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/net/network_portal_detector_impl.h
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl.h b/chrome/browser/chromeos/net/network_portal_detector_impl.h
index 7dcf93d0520b08393d8244fce68eb9fa4a7e59aa..a0ea7f83989349ee97c33e0ea1f0dcc87d060d36 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl.h
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl.h
@@ -38,15 +38,16 @@ namespace chromeos {
class NetworkPortalNotificationController;
class NetworkState;
+void InitializeNetworkPortalDetector(net::URLRequestContextGetter* url_context);
+
// This class handles all notifications about network changes from
// NetworkStateHandler and delegates portal detection for the default
// network to CaptivePortalService.
-class NetworkPortalDetectorImpl
- : public NetworkPortalDetector,
- public base::NonThreadSafe,
- public chromeos::NetworkStateHandlerObserver,
- public content::NotificationObserver,
- public PortalDetectorStrategy::Delegate {
+class NetworkPortalDetectorImpl : public NetworkPortalDetectorInterface,
+ public base::NonThreadSafe,
+ public chromeos::NetworkStateHandlerObserver,
+ public content::NotificationObserver,
+ public PortalDetectorStrategy::Delegate {
public:
static const char kOobeDetectionResultHistogram[];
static const char kOobeDetectionDurationHistogram[];
@@ -62,9 +63,6 @@ class NetworkPortalDetectorImpl
static const char kSessionShillOfflineHistogram[];
static const char kSessionPortalToOnlineHistogram[];
- // Creates an instance of the implementation or a stub.
- static void Initialize(net::URLRequestContextGetter* url_context);
-
NetworkPortalDetectorImpl(
const scoped_refptr<net::URLRequestContextGetter>& request_context,
bool create_notification_controller);
« no previous file with comments | « chrome/browser/chromeos/net/delay_network_call.cc ('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