Chromium Code Reviews| 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_DETECTOR_NOTIFICATION_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_NOTIFICATION_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "chrome/browser/chromeos/net/network_portal_detector.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 class NetworkState; | |
| 16 | |
| 17 class NetworkPortalDetectorNotification { | |
|
Jun Mukai
2014/02/19 19:17:25
I prefer not to use '-Notification' class name for
ygorshenin1
2014/02/20 16:31:39
Done.
| |
| 18 public: | |
| 19 static const char kNotificationId[]; | |
| 20 | |
| 21 NetworkPortalDetectorNotification(); | |
| 22 virtual ~NetworkPortalDetectorNotification(); | |
| 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(NetworkPortalDetectorNotification); | |
| 33 }; | |
| 34 | |
| 35 } // namespace chromeos | |
| 36 | |
| 37 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_NOTIFICATION_H_ | |
| OLD | NEW |