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_
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "chrome/browser/chromeos/cros/network_library.h"
21 // The network login observer reshows a login dialog if there was an error.
23 class NetworkLoginObserver
: public NetworkLibrary::NetworkManagerObserver
{
25 NetworkLoginObserver();
26 virtual ~NetworkLoginObserver();
28 typedef std::map
<std::string
, bool> NetworkFailureMap
;
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_