Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / browser / chromeos / network_login_observer.h
blob1c681e9e1bcc27dec9a96e4dfd7805172abfac68
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_LOGIN_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_LOGIN_OBSERVER_H_
8 #include <map>
9 #include <string>
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "chrome/browser/chromeos/cros/network_library.h"
15 namespace views {
16 class WidgetDelegate;
19 namespace chromeos {
21 // The network login observer reshows a login dialog if there was an error.
23 class NetworkLoginObserver : public NetworkLibrary::NetworkManagerObserver {
24 public:
25 NetworkLoginObserver();
26 virtual ~NetworkLoginObserver();
28 typedef std::map<std::string, bool> NetworkFailureMap;
29 private:
30 void CreateModalPopup(views::WidgetDelegate* view);
32 // NetworkLibrary::NetworkManagerObserver implementation.
33 virtual void OnNetworkManagerChanged(NetworkLibrary* obj) OVERRIDE;
35 DISALLOW_COPY_AND_ASSIGN(NetworkLoginObserver);
38 } // namespace chromeos
40 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_LOGIN_OBSERVER_H_