Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: chrome/browser/chromeos/login/proxy_settings_dialog.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
7
8 #include "chrome/browser/chromeos/login/login_web_dialog.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 class Profile;
12
13 namespace chromeos {
14
15 class NetworkState;
16
17 // Should be used on the UI thread only, because of static |instance_count_|.
18 class ProxySettingsDialog : public LoginWebDialog {
19 public:
20 // Returns whether the dialog is being shown.
21 static bool IsShown();
22
23 ProxySettingsDialog(Profile* profile,
24 const NetworkState& network,
25 LoginWebDialog::Delegate* delegate,
26 gfx::NativeWindow window);
27 virtual ~ProxySettingsDialog();
28
29 protected:
30 // ui::WebDialogDelegate implementation.
31 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
32
33 private:
34 // TODO(altimofeev): consider avoidance static variable by extending current
35 // WebUI/login interfaces.
36 static int instance_count_;
37
38 DISALLOW_COPY_AND_ASSIGN(ProxySettingsDialog);
39 };
40
41 } // namespace chromeos
42
43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PROXY_SETTINGS_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698