1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_PORTAL_DETECTOR_OBSERVER_H 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_PORTAL_DETECTOR_OBSERVER_H 7 8 #include <string> 9 10 namespace ash { 11 12 class NetworkPortalDetectorObserver { 13 public: 14 virtual ~NetworkPortalDetectorObserver() {} 15 16 // Called when captive portal is detected for a |network|. 17 virtual void OnCaptivePortalDetected(const std::string& service_path) = 0; 18 }; 19 20 } // namespace ash 21 22 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_PORTAL_DETECTOR_OBSERVER_H 23