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

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: Respond to achuithb's comment Created 5 years, 2 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 void HandleGetRemoveWarningDialogMessage(const base::ListValue* args);
87
88 // Callback function used by HandleRemoveUserWarningLoadStats
89 void RemoveUserDialogLoadStatsCallback(
90 base::FilePath profile_path,
91 profiles::ProfileCategoryStats result);
83 92
84 // Handle GAIA auth results. 93 // Handle GAIA auth results.
85 void OnGetTokenInfoResponse( 94 void OnGetTokenInfoResponse(
86 scoped_ptr<base::DictionaryValue> token_info) override; 95 scoped_ptr<base::DictionaryValue> token_info) override;
87 void OnOAuthError() override; 96 void OnOAuthError() override;
88 void OnNetworkError(int response_code) override; 97 void OnNetworkError(int response_code) override;
89 98
90 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event. 99 // Handle when Notified of a NOTIFICATION_BROWSER_WINDOW_READY event.
91 void OnBrowserWindowReady(Browser* browser); 100 void OnBrowserWindowReady(Browser* browser);
92 101
(...skipping 27 matching lines...) Expand all
120 // URL hash, used to key post-profile actions if present. 129 // URL hash, used to key post-profile actions if present.
121 std::string url_hash_; 130 std::string url_hash_;
122 131
123 typedef std::map<std::string, 132 typedef std::map<std::string,
124 proximity_auth::ScreenlockBridge::LockHandler::AuthType> 133 proximity_auth::ScreenlockBridge::LockHandler::AuthType>
125 UserAuthTypeMap; 134 UserAuthTypeMap;
126 UserAuthTypeMap user_auth_type_map_; 135 UserAuthTypeMap user_auth_type_map_;
127 136
128 content::NotificationRegistrar registrar_; 137 content::NotificationRegistrar registrar_;
129 138
139 // The CancelableTaskTracker is currently used by GetProfileStatistics
140 base::CancelableTaskTracker tracker_;
141
130 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; 142 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_;
131 143
132 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 144 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
133 }; 145 };
134 146
135 #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