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

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

Issue 171423005: Added in-session captive portal notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 10 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_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_

Powered by Google App Engine
This is Rietveld 408576698