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

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

Issue 8662016: Reland crrev.com/111358 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include <list> 11 #include <list>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/gtest_prod_util.h"
16 #include "base/hash_tables.h" 17 #include "base/hash_tables.h"
17 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
18 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
19 #include "base/message_loop.h" 20 #include "base/message_loop.h"
20 #include "base/threading/non_thread_safe.h" 21 #include "base/threading/non_thread_safe.h"
21 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/browser_init.h" 23 #include "chrome/browser/ui/browser_init.h"
23 #include "chrome/browser/ui/browser_list.h" 24 #include "chrome/browser/ui/browser_list.h"
24 #include "content/public/browser/notification_observer.h" 25 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Does final initial actions. 206 // Does final initial actions.
206 virtual void DoFinalInit(Profile* profile, bool go_off_the_record); 207 virtual void DoFinalInit(Profile* profile, bool go_off_the_record);
207 virtual void DoFinalInitForServices(Profile* profile, bool go_off_the_record); 208 virtual void DoFinalInitForServices(Profile* profile, bool go_off_the_record);
208 virtual void DoFinalInitLogging(Profile* profile); 209 virtual void DoFinalInitLogging(Profile* profile);
209 210
210 // Creates a new profile. Virtual so that unittests can return TestingProfile. 211 // Creates a new profile. Virtual so that unittests can return TestingProfile.
211 virtual Profile* CreateProfile(const FilePath& path); 212 virtual Profile* CreateProfile(const FilePath& path);
212 213
213 private: 214 private:
214 friend class TestingProfileManager; 215 friend class TestingProfileManager;
215 FRIEND_TEST(ProfileManagerBrowserTest, DeleteAllProfiles); 216 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles);
216 217
217 // This struct contains information about profiles which are being loaded or 218 // This struct contains information about profiles which are being loaded or
218 // were loaded. 219 // were loaded.
219 struct ProfileInfo { 220 struct ProfileInfo {
220 ProfileInfo(Profile* profile, bool created) 221 ProfileInfo(Profile* profile, bool created)
221 : profile(profile), created(created) { 222 : profile(profile), created(created) {
222 } 223 }
223 224
224 ~ProfileInfo() {} 225 ~ProfileInfo() {}
225 226
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 class ProfileManagerWithoutInit : public ProfileManager { 304 class ProfileManagerWithoutInit : public ProfileManager {
304 public: 305 public:
305 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 306 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
306 307
307 protected: 308 protected:
308 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 309 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
309 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 310 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
310 }; 311 };
311 312
312 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 313 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698