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

Side by Side Diff: chrome/browser/ui/login/login_model.h

Issue 16629005: Use a direct include of strings headers in chrome/browser/ui/b*-p*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_ 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_
7 7
8 #include "base/string16.h" 8 #include "base/strings/string16.h"
9 9
10 // Simple Model & Observer interfaces for a LoginView to facilitate exchanging 10 // Simple Model & Observer interfaces for a LoginView to facilitate exchanging
11 // information. 11 // information.
12 class LoginModelObserver { 12 class LoginModelObserver {
13 public: 13 public:
14 // Called by the model when a username,password pair has been identified 14 // Called by the model when a username,password pair has been identified
15 // as a match for the pending login prompt. 15 // as a match for the pending login prompt.
16 virtual void OnAutofillDataAvailable(const string16& username, 16 virtual void OnAutofillDataAvailable(const string16& username,
17 const string16& password) = 0; 17 const string16& password) = 0;
18 18
19 virtual void OnLoginModelDestroying() = 0; 19 virtual void OnLoginModelDestroying() = 0;
20 20
21 protected: 21 protected:
22 virtual ~LoginModelObserver() {} 22 virtual ~LoginModelObserver() {}
23 }; 23 };
24 24
25 class LoginModel { 25 class LoginModel {
26 public: 26 public:
27 // Set the observer interested in the data from the model. 27 // Set the observer interested in the data from the model.
28 // observer can be null, signifying there is no longer any observer 28 // observer can be null, signifying there is no longer any observer
29 // interested in the data. 29 // interested in the data.
30 virtual void SetObserver(LoginModelObserver* observer) = 0; 30 virtual void SetObserver(LoginModelObserver* observer) = 0;
31 31
32 protected: 32 protected:
33 virtual ~LoginModel() {} 33 virtual ~LoginModel() {}
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_ 36 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc ('k') | chrome/browser/ui/omnibox/action_box_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698