Lines Matching full:profile
5 // This class gathers state related to a single user profile.
70 // Instead of adding more members to Profile, consider creating a
72 // http://dev.chromium.org/developers/design-documents/profile-architecture
73 class Profile : public content::BrowserContext {
75 // Profile services are accessed with the following parameter. This parameter
78 // result in persistent implicit records while using an OffTheRecord profile.
79 // This flag allows the profile to perform an additional check.
94 // in the profile, as part of Chrome's implicit data logging. Use this flag
101 // Profile services were not created due to a local error (e.g., disk full).
103 // Profile services were not created due to a remote error (e.g., network
106 // Profile created but before initializing extensions and promo resources.
108 // Profile is created, extensions and promo resources are initialized.
110 // Profile creation (managed-user registration, generally) was canceled
123 // profile.
133 REGULAR_PROFILE, // Login user's normal profile
134 INCOGNITO_PROFILE, // Login user's off-the-record profile
135 GUEST_PROFILE, // Guest session's profile
142 // Called when creation of the profile is finished.
143 virtual void OnProfileCreated(Profile* profile,
148 // Key used to bind profile to the widget with which it is associated.
151 Profile();
152 virtual ~Profile();
154 // Profile prefs are registered as soon as the prefs are loaded for the first
158 // Create a new profile given a path. If |create_mode| is
159 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously.
160 static Profile* CreateProfile(const base::FilePath& path,
164 // Returns the profile corresponding to the given browser context.
165 static Profile* FromBrowserContext(content::BrowserContext* browser_context);
167 // Returns the profile corresponding to the given WebUI.
168 static Profile* FromWebUI(content::WebUI* web_ui);
179 // Returns the name associated with this profile. This name is displayed in
183 // Returns the profile type.
186 // Return the incognito version of this profile. The returned pointer
187 // is owned by the receiving profile. If the receiving profile is off the
188 // record, the same profile is returned.
190 // WARNING: This will create the OffTheRecord profile if it doesn't already
193 virtual Profile* GetOffTheRecordProfile() = 0;
195 // Destroys the incognito profile.
198 // True if an incognito profile exists.
201 // Return the original "recording" profile. This method returns this if the
202 // profile is not incognito.
203 virtual Profile* GetOriginalProfile() = 0;
205 // Returns whether the profile is supervised (see ManagedUserService).
209 // for this profile.
217 // profile. The ExtensionService is created at startup.
226 // preferences for this user profile.
241 // Returns the SSLConfigService for this profile.
244 // Returns the Hostname <-> Content settings map for this profile.
248 // represent the same profile. This can happen if there is pointer equality
249 // or if one profile is the incognito version of another profile (or vice
251 virtual bool IsSameProfile(Profile* profile) = 0;
253 // Returns the time the profile was started. This is not the time the profile
255 // this profile. For the single profile case, this corresponds to the time
263 // still has to happen in the Profile so the StoragePartition calls
273 // StoragePartition, but creation still has to happen in the Profile so the
298 // Changes application locale for a profile.
316 // Returns the DevToolsNetworkController for this profile.
324 // invoked after the Profile instance has been destroyed.
334 // Returns the home page for this profile.
337 // Returns whether or not the profile was created by a version of Chrome
354 // Sets the ExitType for the profile. This may be invoked multiple times
383 // Returns whether the profile is new. A profile is new if the browser has
384 // not been shut down since the profile was created.
391 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not
396 // Creates an OffTheRecordProfile which points to this Profile.
397 Profile* CreateOffTheRecordProfile();
402 // Used to prevent the notification that this Profile is destroyed from
412 DISALLOW_COPY_AND_ASSIGN(Profile);
415 // The comparator for profile pointers as key in a map.
417 bool operator()(Profile* a, Profile* b) const;
424 struct hash<Profile*> {
425 std::size_t operator()(Profile* const& p) const {