OLD | NEW |
(Empty) | |
| 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 CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_NOTIFICATION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_NOTIFICATION_CONTROLLER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/chromeos/net/network_portal_detector.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class NetworkState; |
| 16 |
| 17 class NetworkPortalNotificationController { |
| 18 public: |
| 19 static const char kNotificationId[]; |
| 20 |
| 21 NetworkPortalNotificationController(); |
| 22 virtual ~NetworkPortalNotificationController(); |
| 23 |
| 24 void OnPortalDetectionCompleted( |
| 25 const NetworkState* network, |
| 26 const NetworkPortalDetector::CaptivePortalState& state); |
| 27 |
| 28 private: |
| 29 // Last network path for which notification was displayed. |
| 30 std::string last_network_path_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(NetworkPortalNotificationController); |
| 33 }; |
| 34 |
| 35 } // namespace chromeos |
| 36 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |