Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 339 virtual const Extension* GetTheme() = 0; | 339 virtual const Extension* GetTheme() = 0; |
| 340 | 340 |
| 341 // Returns or creates the ThemeProvider associated with this profile | 341 // Returns or creates the ThemeProvider associated with this profile |
| 342 virtual BrowserThemeProvider* GetThemeProvider() = 0; | 342 virtual BrowserThemeProvider* GetThemeProvider() = 0; |
| 343 | 343 |
| 344 // Returns the request context information associated with this profile. Call | 344 // Returns the request context information associated with this profile. Call |
| 345 // this only on the UI thread, since it can send notifications that should | 345 // this only on the UI thread, since it can send notifications that should |
| 346 // happen on the UI thread. | 346 // happen on the UI thread. |
| 347 virtual URLRequestContextGetter* GetRequestContext() = 0; | 347 virtual URLRequestContextGetter* GetRequestContext() = 0; |
| 348 | 348 |
| 349 // Returns the request context appropriate for the given app. If installed_app | |
|
willchan no longer on Chromium
2011/03/08 22:29:14
Do we really need two new member functions? Is thi
Charlie Reis
2011/03/09 00:10:55
Yes, I'd rather get some experience with this expe
| |
| 350 // is null or installed_app->is_storage_isolated() returns false, this is | |
| 351 // equivalent to calling GetRequestContext(). | |
| 352 virtual URLRequestContextGetter* GetRequestContextForPossibleApp( | |
| 353 const Extension* installed_app) = 0; | |
| 354 | |
| 349 // Returns the request context for media resources asociated with this | 355 // Returns the request context for media resources asociated with this |
| 350 // profile. | 356 // profile. |
| 351 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; | 357 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
| 352 | 358 |
| 353 // Returns the request context used for extension-related requests. This | 359 // Returns the request context used for extension-related requests. This |
| 354 // is only used for a separate cookie store currently. | 360 // is only used for a separate cookie store currently. |
| 355 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 361 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 356 | 362 |
| 363 // Returns the request context used within an installed app that has | |
| 364 // requested isolated storage. | |
| 365 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp( | |
| 366 const Extension* installed_app) = 0; | |
| 367 | |
| 357 // Called by the ExtensionService that lives in this profile. Gives the | 368 // Called by the ExtensionService that lives in this profile. Gives the |
| 358 // profile a chance to react to the load event before the EXTENSION_LOADED | 369 // profile a chance to react to the load event before the EXTENSION_LOADED |
| 359 // notification has fired. The purpose for handling this event first is to | 370 // notification has fired. The purpose for handling this event first is to |
| 360 // avoid race conditions by making sure URLRequestContexts learn about new | 371 // avoid race conditions by making sure URLRequestContexts learn about new |
| 361 // extensions before anything else needs them to know. | 372 // extensions before anything else needs them to know. |
| 362 virtual void RegisterExtensionWithRequestContexts( | 373 virtual void RegisterExtensionWithRequestContexts( |
| 363 const Extension* extension) {} | 374 const Extension* extension) {} |
| 364 | 375 |
| 365 // Called by the ExtensionService that lives in this profile. Lets the | 376 // Called by the ExtensionService that lives in this profile. Lets the |
| 366 // profile clean up its RequestContexts once all the listeners to the | 377 // profile clean up its RequestContexts once all the listeners to the |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 600 bool restored_last_session_; | 611 bool restored_last_session_; |
| 601 | 612 |
| 602 // Accessibility events will only be propagated when the pause | 613 // Accessibility events will only be propagated when the pause |
| 603 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 614 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 604 // increment and decrement the level, respectively, rather than set it to | 615 // increment and decrement the level, respectively, rather than set it to |
| 605 // true or false, so that calls can be nested. | 616 // true or false, so that calls can be nested. |
| 606 int accessibility_pause_level_; | 617 int accessibility_pause_level_; |
| 607 }; | 618 }; |
| 608 | 619 |
| 609 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 620 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |