Home | History | Annotate | Download | only in profiles

Lines Matching full:profile

5 // This class gathers state related to a single user profile.
71 // Instead of adding more members to Profile, consider creating a
73 // http://dev.chromium.org/developers/design-documents/profile-architecture
74 class Profile : public content::BrowserContext {
76 // Profile services are accessed with the following parameter. This parameter
79 // result in persistent implicit records while using an OffTheRecord profile.
80 // This flag allows the profile to perform an additional check.
95 // in the profile, as part of Chrome's implicit data logging. Use this flag
102 // Profile services were not created due to a local error (e.g., disk full).
104 // Profile services were not created due to a remote error (e.g., network
107 // Profile created but before initializing extensions and promo resources.
109 // Profile is created, extensions and promo resources are initialized.
111 // Profile creation (managed-user registration, generally) was canceled
124 // profile.
137 // Called when creation of the profile is finished.
138 virtual void OnProfileCreated(Profile* profile,
143 // Key used to bind profile to the widget with which it is associated.
146 Profile();
147 virtual ~Profile();
149 // Profile prefs are registered as soon as the prefs are loaded for the first
153 // Create a new profile given a path. If |create_mode| is
154 // CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously.
155 static Profile* CreateProfile(const base::FilePath& path,
159 // Returns the profile corresponding to the given browser context.
160 static Profile* FromBrowserContext(content::BrowserContext* browser_context);
162 // Returns the profile corresponding to the given WebUI.
163 static Profile* FromWebUI(content::WebUI* web_ui);
174 // Returns the name associated with this profile. This name is displayed in
178 // Return the incognito version of this profile. The returned pointer
179 // is owned by the receiving profile. If the receiving profile is off the
180 // record, the same profile is returned.
182 // WARNING: This will create the OffTheRecord profile if it doesn't already
185 virtual Profile* GetOffTheRecordProfile() = 0;
187 // Destroys the incognito profile.
190 // True if an incognito profile exists.
193 // Return the original "recording" profile. This method returns this if the
194 // profile is not incognito.
195 virtual Profile* GetOriginalProfile() = 0;
197 // Returns whether the profile is managed (see ManagedUserService).
201 // for this profile.
209 // profile. The ExtensionService is created at startup.
218 // preferences for this user profile.
233 // Returns the SSLConfigService for this profile.
236 // Returns the Hostname <-> Content settings map for this profile.
240 // represent the same profile. This can happen if there is pointer equality
241 // or if one profile is the incognito version of another profile (or vice
243 virtual bool IsSameProfile(Profile* profile) = 0;
245 // Returns the time the profile was started. This is not the time the profile
247 // this profile. For the single profile case, this corresponds to the time
255 // still has to happen in the Profile so the StoragePartition calls
264 // StoragePartition, but creation still has to happen in the Profile so the
288 // Changes application locale for a profile.
311 // invoked after the Profile instance has been destroyed.
315 // Returns the home page for this profile.
318 // Returns whether or not the profile was created by a version of Chrome
335 // Sets the ExitType for the profile. This may be invoked multiple times
364 // Returns whether the profile is new. A profile is new if the browser has
365 // not been shut down since the profile was created.
372 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not
377 // Creates an OffTheRecordProfile which points to this Profile.
378 Profile* CreateOffTheRecordProfile();
383 // Used to prevent the notification that this Profile is destroyed from
393 DISALLOW_COPY_AND_ASSIGN(Profile);
400 struct hash<Profile*> {
401 std::size_t operator()(Profile* const& p) const {