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

Side by Side Diff: chrome/browser/profiles/profile_manager.h

Issue 7466033: Fix warning prompting on closing a window that will cancel downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various fixes related to try jobs. Created 9 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 | 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 // This class keeps track of the currently-active profiles in the runtime. 5 // This class keeps track of the currently-active profiles in the runtime.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns a ProfileInfoCache object which can be used to get information 160 // Returns a ProfileInfoCache object which can be used to get information
161 // about profiles without having to load them from disk. 161 // about profiles without having to load them from disk.
162 ProfileInfoCache& GetProfileInfoCache(); 162 ProfileInfoCache& GetProfileInfoCache();
163 163
164 // Schedules the profile at the given path to be deleted on shutdown. 164 // Schedules the profile at the given path to be deleted on shutdown.
165 void ScheduleProfileForDeletion(const FilePath& profile_dir); 165 void ScheduleProfileForDeletion(const FilePath& profile_dir);
166 166
167 // Checks if multiple profiles is enabled. 167 // Checks if multiple profiles is enabled.
168 static bool IsMultipleProfilesEnabled(); 168 static bool IsMultipleProfilesEnabled();
169 169
170 // Get the total download count for all profiles.
171 int TotalDownloadCount() const;
172
170 protected: 173 protected:
171 // Does final initial actions. 174 // Does final initial actions.
172 virtual void DoFinalInit(Profile* profile, bool go_off_the_record); 175 virtual void DoFinalInit(Profile* profile, bool go_off_the_record);
173 176
174 private: 177 private:
175 friend class ExtensionEventRouterForwarderTest; 178 friend class ExtensionEventRouterForwarderTest;
176 179
177 // This struct contains information about profiles which are being loaded or 180 // This struct contains information about profiles which are being loaded or
178 // were loaded. 181 // were loaded.
179 struct ProfileInfo { 182 struct ProfileInfo {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 }; 240 };
238 241
239 // Same as the ProfileManager, but doesn't initialize some services of the 242 // Same as the ProfileManager, but doesn't initialize some services of the
240 // profile. This one is useful in unittests. 243 // profile. This one is useful in unittests.
241 class ProfileManagerWithoutInit : public ProfileManager { 244 class ProfileManagerWithoutInit : public ProfileManager {
242 protected: 245 protected:
243 virtual void DoFinalInit(Profile*, bool) {} 246 virtual void DoFinalInit(Profile*, bool) {}
244 }; 247 };
245 248
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 249 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698