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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698