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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_PROXY_SETTINGS_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_PROXY_SETTINGS_DIALOG_H_
8 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h"
9 #include "ui/gfx/native_widget_types.h"
19 // Should be used on the UI thread only, because of static |instance_count_|.
20 class ProxySettingsDialog
: public LoginWebDialog
{
22 // Returns whether the dialog is being shown.
23 static bool IsShown();
25 ProxySettingsDialog(content::BrowserContext
* browser_context
,
26 const NetworkState
& network
,
27 LoginWebDialog::Delegate
* delegate
,
28 gfx::NativeWindow window
);
29 ~ProxySettingsDialog() override
;
32 // ui::WebDialogDelegate implementation.
33 void OnDialogClosed(const std::string
& json_retval
) override
;
36 // TODO(altimofeev): consider avoidance static variable by extending current
37 // WebUI/login interfaces.
38 static int instance_count_
;
40 DISALLOW_COPY_AND_ASSIGN(ProxySettingsDialog
);
43 } // namespace chromeos
45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_PROXY_SETTINGS_DIALOG_H_