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

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

Issue 12670013: Out-of-process import on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r196136 + modifications in extracted CLs Created 7 years, 8 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 // 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 9
10 #include <list> 10 #include <list>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Returns created profiles. Note, profiles order is NOT guaranteed to be 121 // Returns created profiles. Note, profiles order is NOT guaranteed to be
122 // related with the creation order. 122 // related with the creation order.
123 std::vector<Profile*> GetLoadedProfiles() const; 123 std::vector<Profile*> GetLoadedProfiles() const;
124 124
125 // content::NotificationObserver implementation. 125 // content::NotificationObserver implementation.
126 virtual void Observe(int type, 126 virtual void Observe(int type,
127 const content::NotificationSource& source, 127 const content::NotificationSource& source,
128 const content::NotificationDetails& details) OVERRIDE; 128 const content::NotificationDetails& details) OVERRIDE;
129 129
130 // Returns true if the given command line indicates that this is a short-lived
131 // profile import process.
132 static bool IsImportProcess(const CommandLine& command_line);
133
134 // Indicate that an import process will run for the next created Profile. 130 // Indicate that an import process will run for the next created Profile.
135 void SetWillImport(); 131 void SetWillImport();
136 bool will_import() { return will_import_; } 132 bool will_import() { return will_import_; }
137 133
138 // Indicate that the import process for |profile| has completed. 134 // Indicate that the import process for |profile| has completed.
139 void OnImportFinished(Profile* profile); 135 void OnImportFinished(Profile* profile);
140 136
141 // ------------------ static utility functions ------------------- 137 // ------------------ static utility functions -------------------
142 138
143 // Returns the path to the default profile directory, based on the given 139 // Returns the path to the default profile directory, based on the given
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 class ProfileManagerWithoutInit : public ProfileManager { 371 class ProfileManagerWithoutInit : public ProfileManager {
376 public: 372 public:
377 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 373 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
378 374
379 protected: 375 protected:
380 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 376 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
381 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 377 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
382 }; 378 };
383 379
384 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 380 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698