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

Side by Side Diff: content/shell/browser/shell_login_dialog.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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 25 matching lines...) Expand all
36 ShellLoginDialog(net::AuthChallengeInfo* auth_info, net::URLRequest* request); 36 ShellLoginDialog(net::AuthChallengeInfo* auth_info, net::URLRequest* request);
37 37
38 // ResourceDispatcherHostLoginDelegate implementation: 38 // ResourceDispatcherHostLoginDelegate implementation:
39 // Threading: IO thread. 39 // Threading: IO thread.
40 virtual void OnRequestCancelled() OVERRIDE; 40 virtual void OnRequestCancelled() OVERRIDE;
41 41
42 // Called by the platform specific code when the user responds. Public because 42 // Called by the platform specific code when the user responds. Public because
43 // the aforementioned platform specific code may not have access to private 43 // the aforementioned platform specific code may not have access to private
44 // members. Not to be called from client code. 44 // members. Not to be called from client code.
45 // Threading: UI thread. 45 // Threading: UI thread.
46 void UserAcceptedAuth(const string16& username, const string16& password); 46 void UserAcceptedAuth(const base::string16& username,
47 const base::string16& password);
47 void UserCancelledAuth(); 48 void UserCancelledAuth();
48 49
49 protected: 50 protected:
50 // Threading: any 51 // Threading: any
51 virtual ~ShellLoginDialog(); 52 virtual ~ShellLoginDialog();
52 53
53 private: 54 private:
54 // All the methods that begin with Platform need to be implemented by the 55 // All the methods that begin with Platform need to be implemented by the
55 // platform specific LoginDialog implementation. 56 // platform specific LoginDialog implementation.
56 // Creates the dialog. 57 // Creates the dialog.
57 // Threading: UI thread. 58 // Threading: UI thread.
58 void PlatformCreateDialog(const string16& message); 59 void PlatformCreateDialog(const base::string16& message);
59 // Called from the destructor to let each platform do any necessary cleanup. 60 // Called from the destructor to let each platform do any necessary cleanup.
60 // Threading: UI thread. 61 // Threading: UI thread.
61 void PlatformCleanUp(); 62 void PlatformCleanUp();
62 // Called from OnRequestCancelled if the request was cancelled. 63 // Called from OnRequestCancelled if the request was cancelled.
63 // Threading: UI thread. 64 // Threading: UI thread.
64 void PlatformRequestCancelled(); 65 void PlatformRequestCancelled();
65 66
66 // Sets up dialog creation. 67 // Sets up dialog creation.
67 // Threading: UI thread. 68 // Threading: UI thread.
68 void PrepDialog(const string16& host, const string16& realm); 69 void PrepDialog(const base::string16& host, const base::string16& realm);
69 70
70 // Sends the authentication to the requester. 71 // Sends the authentication to the requester.
71 // Threading: IO thread. 72 // Threading: IO thread.
72 void SendAuthToRequester(bool success, 73 void SendAuthToRequester(bool success,
73 const string16& username, 74 const base::string16& username,
74 const string16& password); 75 const base::string16& password);
75 76
76 // Who/where/what asked for the authentication. 77 // Who/where/what asked for the authentication.
77 // Threading: IO thread. 78 // Threading: IO thread.
78 scoped_refptr<net::AuthChallengeInfo> auth_info_; 79 scoped_refptr<net::AuthChallengeInfo> auth_info_;
79 80
80 // The request that wants login data. 81 // The request that wants login data.
81 // Threading: IO thread. 82 // Threading: IO thread.
82 net::URLRequest* request_; 83 net::URLRequest* request_;
83 84
84 #if defined(OS_MACOSX) 85 #if defined(OS_MACOSX)
85 // Threading: UI thread. 86 // Threading: UI thread.
86 ShellLoginDialogHelper* helper_; // owned 87 ShellLoginDialogHelper* helper_; // owned
87 #elif defined(TOOLKIT_GTK) 88 #elif defined(TOOLKIT_GTK)
88 GtkWidget* username_entry_; 89 GtkWidget* username_entry_;
89 GtkWidget* password_entry_; 90 GtkWidget* password_entry_;
90 GtkWidget* root_; 91 GtkWidget* root_;
91 CHROMEGTK_CALLBACK_1(ShellLoginDialog, void, OnResponse, int); 92 CHROMEGTK_CALLBACK_1(ShellLoginDialog, void, OnResponse, int);
92 #endif 93 #endif
93 }; 94 };
94 95
95 } // namespace content 96 } // namespace content
96 97
97 #endif // CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_ 98 #endif // CONTENT_SHELL_BROWSER_SHELL_LOGIN_DIALOG_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_javascript_dialog_win.cc ('k') | content/shell/browser/shell_login_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698