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

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: rebase on top of https://codereview.chromium.org/15736014/ Created 7 years, 7 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_manager.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) 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 class ProfileManagerWithoutInit : public ProfileManager { 369 class ProfileManagerWithoutInit : public ProfileManager {
374 public: 370 public:
375 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 371 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
376 372
377 protected: 373 protected:
378 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 374 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
379 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 375 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
380 }; 376 };
381 377
382 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 378 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698