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

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

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated chromeos empty "localized" strings in signin_screen_handler.cc Created 5 years, 4 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
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 CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/task/cancelable_task_tracker.h"
15 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_metrics.h" 17 #include "chrome/browser/profiles/profile_metrics.h"
18 #include "chrome/browser/profiles/profile_statistics.h"
17 #include "chrome/browser/ui/host_desktop.h" 19 #include "chrome/browser/ui/host_desktop.h"
18 #include "components/proximity_auth/screenlock_bridge.h" 20 #include "components/proximity_auth/screenlock_bridge.h"
19 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/web_ui_message_handler.h" 23 #include "content/public/browser/web_ui_message_handler.h"
22 #include "google_apis/gaia/gaia_oauth_client.h" 24 #include "google_apis/gaia/gaia_oauth_client.h"
23 25
24 class GaiaAuthFetcher; 26 class GaiaAuthFetcher;
25 27
26 namespace base { 28 namespace base {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class ProfileUpdateObserver; 75 class ProfileUpdateObserver;
74 76
75 void HandleInitialize(const base::ListValue* args); 77 void HandleInitialize(const base::ListValue* args);
76 void HandleAddUser(const base::ListValue* args); 78 void HandleAddUser(const base::ListValue* args);
77 void HandleAuthenticatedLaunchUser(const base::ListValue* args); 79 void HandleAuthenticatedLaunchUser(const base::ListValue* args);
78 void HandleLaunchGuest(const base::ListValue* args); 80 void HandleLaunchGuest(const base::ListValue* args);
79 void HandleLaunchUser(const base::ListValue* args); 81 void HandleLaunchUser(const base::ListValue* args);
80 void HandleRemoveUser(const base::ListValue* args); 82 void HandleRemoveUser(const base::ListValue* args);
81 void HandleAttemptUnlock(const base::ListValue* args); 83 void HandleAttemptUnlock(const base::ListValue* args);
82 void HandleHardlockUserPod(const base::ListValue* args); 84 void HandleHardlockUserPod(const base::ListValue* args);
85 void HandleRemoveUserWarningLoadStats(const base::ListValue* args);
86
87 // Callback function used by HandleRemoveUserWarningLoadStats
88 void RemoveUserDialogLoadStatsCallback(
89 const base::FilePath* profile_path,
90 profiles::ProfileStatisticsValues result);
83 91
84 // Handle GAIA auth results. 92 // Handle GAIA auth results.
85 void OnGetTokenInfoResponse( 93 void OnGetTokenInfoResponse(
86 scoped_ptr<base::DictionaryValue> token_info) override; 94 scoped_ptr<base::DictionaryValue> token_info) override;
87 void OnOAuthError() override; 95 void OnOAuthError() override;
88 void OnNetworkError(int response_code) override; 96 void OnNetworkError(int response_code) override;
89 97
90 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event. 98 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event.
91 void OnBrowserWindowReady(Browser* browser); 99 void OnBrowserWindowReady(Browser* browser);
92 100
(...skipping 28 matching lines...) Expand all
121 // URL hash, used to key post-profile actions if present. 129 // URL hash, used to key post-profile actions if present.
122 std::string url_hash_; 130 std::string url_hash_;
123 131
124 typedef std::map<std::string, 132 typedef std::map<std::string,
125 proximity_auth::ScreenlockBridge::LockHandler::AuthType> 133 proximity_auth::ScreenlockBridge::LockHandler::AuthType>
126 UserAuthTypeMap; 134 UserAuthTypeMap;
127 UserAuthTypeMap user_auth_type_map_; 135 UserAuthTypeMap user_auth_type_map_;
128 136
129 content::NotificationRegistrar registrar_; 137 content::NotificationRegistrar registrar_;
130 138
139 // The CalcelableTaskTracker is currently used by GetProfileStatistics
Mike Lerman 2015/08/05 19:26:10 spelling, missed an n on CaNcelableTaskTracker.
lwchkg 2015/08/06 04:32:59 Acknowledged.
140 base::CancelableTaskTracker tracker;
141
131 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; 142 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_;
132 143
133 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 144 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
134 }; 145 };
135 146
136 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 147 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698