Chromium Code Reviews| Index: chrome/browser/chromeos/net/network_portal_detector_notification.h |
| diff --git a/chrome/browser/chromeos/net/network_portal_detector_notification.h b/chrome/browser/chromeos/net/network_portal_detector_notification.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..13354a8e40acc2f69e6626f27828ba5f57e26f5f |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/net/network_portal_detector_notification.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_NOTIFICATION_H_ |
| +#define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_NOTIFICATION_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "chrome/browser/chromeos/net/network_portal_detector.h" |
| + |
| +namespace chromeos { |
| + |
| +class NetworkState; |
| + |
| +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.
|
| + public: |
| + static const char kNotificationId[]; |
| + |
| + NetworkPortalDetectorNotification(); |
| + virtual ~NetworkPortalDetectorNotification(); |
| + |
| + void OnPortalDetectionCompleted( |
| + const NetworkState* network, |
| + const NetworkPortalDetector::CaptivePortalState& state); |
| + |
| + private: |
| + // Last network path for which notification was displayed. |
| + std::string last_network_path_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorNotification); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_NOTIFICATION_H_ |