OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" | 10 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // This class provides a dialog box to ask the user for credentials. Useful in | 27 // This class provides a dialog box to ask the user for credentials. Useful in |
28 // ResourceDispatcherHostDelegate::CreateLoginDelegate. | 28 // ResourceDispatcherHostDelegate::CreateLoginDelegate. |
29 class ShellLoginDialog : public ResourceDispatcherHostLoginDelegate { | 29 class ShellLoginDialog : public ResourceDispatcherHostLoginDelegate { |
30 public: | 30 public: |
31 // Threading: IO thread. | 31 // Threading: IO thread. |
32 ShellLoginDialog(net::AuthChallengeInfo* auth_info, net::URLRequest* request); | 32 ShellLoginDialog(net::AuthChallengeInfo* auth_info, net::URLRequest* request); |
33 | 33 |
34 // ResourceDispatcherHostLoginDelegate implementation: | 34 // ResourceDispatcherHostLoginDelegate implementation: |
35 // Threading: IO thread. | 35 // Threading: IO thread. |
36 virtual void OnRequestCancelled() OVERRIDE; | 36 virtual void OnRequestCancelled() override; |
37 | 37 |
38 // Called by the platform specific code when the user responds. Public because | 38 // Called by the platform specific code when the user responds. Public because |
39 // the aforementioned platform specific code may not have access to private | 39 // the aforementioned platform specific code may not have access to private |
40 // members. Not to be called from client code. | 40 // members. Not to be called from client code. |
41 // Threading: UI thread. | 41 // Threading: UI thread. |
42 void UserAcceptedAuth(const base::string16& username, | 42 void UserAcceptedAuth(const base::string16& username, |
43 const base::string16& password); | 43 const base::string16& password); |
44 void UserCancelledAuth(); | 44 void UserCancelledAuth(); |
45 | 45 |
46 protected: | 46 protected: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 #if defined(OS_MACOSX) | 81 #if defined(OS_MACOSX) |
82 // Threading: UI thread. | 82 // Threading: UI thread. |
83 ShellLoginDialogHelper* helper_; // owned | 83 ShellLoginDialogHelper* helper_; // owned |
84 #endif | 84 #endif |
85 }; | 85 }; |
86 | 86 |
87 } // namespace content | 87 } // namespace content |
88 | 88 |
89 #endif // CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ | 89 #endif // CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ |
OLD | NEW |