Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / proxy_settings_dialog.h
blob319367efd669b8c4b5c23e9414ca185324fc535c
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_LOGIN_PROXY_SETTINGS_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
8 #include "chrome/browser/chromeos/login/login_web_dialog.h"
9 #include "ui/gfx/native_widget_types.h"
11 namespace chromeos {
13 class NetworkState;
15 // Should be used on the UI thread only, because of static |instance_count_|.
16 class ProxySettingsDialog : public LoginWebDialog {
17 public:
18 // Returns whether the dialog is being shown.
19 static bool IsShown();
21 ProxySettingsDialog(const NetworkState& network,
22 LoginWebDialog::Delegate* delegate,
23 gfx::NativeWindow window);
24 virtual ~ProxySettingsDialog();
26 protected:
27 // ui::WebDialogDelegate implementation.
28 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
30 private:
31 // TODO(altimofeev): consider avoidance static variable by extending current
32 // WebUI/login interfaces.
33 static int instance_count_;
35 DISALLOW_COPY_AND_ASSIGN(ProxySettingsDialog);
38 } // namespace chromeos
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_