Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / chromeos / login / ui / proxy_settings_dialog.h
blobbc5d7153019256380ea3063d27bcdbb4e09cbea5
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"
11 namespace content {
12 class BrowserContext;
15 namespace chromeos {
17 class NetworkState;
19 // Should be used on the UI thread only, because of static |instance_count_|.
20 class ProxySettingsDialog : public LoginWebDialog {
21 public:
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;
31 protected:
32 // ui::WebDialogDelegate implementation.
33 void OnDialogClosed(const std::string& json_retval) override;
35 private:
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_