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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 10 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
11 11
12 class Browser; 12 class Browser;
13 class Profile; 13 class Profile;
14 14
15 // The LoginUIService helps track per-profile information for the login UI - 15 // The LoginUIService helps track per-profile information for the login UI -
16 // for example, whether there is login UI currently on-screen. 16 // for example, whether there is login UI currently on-screen.
17 class LoginUIService : public ProfileKeyedService { 17 class LoginUIService : public BrowserContextKeyedService {
18 public: 18 public:
19 // Various UI components implement this API to allow LoginUIService to 19 // Various UI components implement this API to allow LoginUIService to
20 // manipulate their associated login UI. 20 // manipulate their associated login UI.
21 class LoginUI { 21 class LoginUI {
22 public: 22 public:
23 // Invoked when the login UI should be brought to the foreground. 23 // Invoked when the login UI should be brought to the foreground.
24 virtual void FocusUI() = 0; 24 virtual void FocusUI() = 0;
25 25
26 // Invoked when the login UI should be closed. This can be invoked if the 26 // Invoked when the login UI should be closed. This can be invoked if the
27 // user takes an action that should display new login UI. 27 // user takes an action that should display new login UI.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 LoginUI* ui_; 75 LoginUI* ui_;
76 Profile* profile_; 76 Profile* profile_;
77 77
78 // List of observers. 78 // List of observers.
79 ObserverList<Observer> observer_list_; 79 ObserverList<Observer> observer_list_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(LoginUIService); 81 DISALLOW_COPY_AND_ASSIGN(LoginUIService);
82 }; 82 };
83 83
84 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 84 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698