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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 virtual const Extension* GetTheme() = 0; | 323 virtual const Extension* GetTheme() = 0; |
324 | 324 |
325 // Returns or creates the ThemeProvider associated with this profile | 325 // Returns or creates the ThemeProvider associated with this profile |
326 virtual BrowserThemeProvider* GetThemeProvider() = 0; | 326 virtual BrowserThemeProvider* GetThemeProvider() = 0; |
327 | 327 |
328 // Returns the request context information associated with this profile. Call | 328 // Returns the request context information associated with this profile. Call |
329 // this only on the UI thread, since it can send notifications that should | 329 // this only on the UI thread, since it can send notifications that should |
330 // happen on the UI thread. | 330 // happen on the UI thread. |
331 virtual URLRequestContextGetter* GetRequestContext() = 0; | 331 virtual URLRequestContextGetter* GetRequestContext() = 0; |
332 | 332 |
333 // Returns the request context appropriate for the given app. If app is null | |
334 // or app->is_storage_isolated() returns false, this is equivalent to calling | |
335 // GetRequestContext(). | |
336 virtual URLRequestContextGetter* GetRequestContext(const Extension* app) = 0; | |
willchan no longer on Chromium
2011/01/26 23:21:52
http://www.corp.google.com/eng/doc/cppguide.xml#Fu
Charlie Reis
2011/03/01 21:33:11
I've renamed it to GetRequestContextForPossibleApp
| |
337 | |
333 // Returns the request context for media resources asociated with this | 338 // Returns the request context for media resources asociated with this |
334 // profile. | 339 // profile. |
335 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; | 340 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
336 | 341 |
337 // Returns the request context used for extension-related requests. This | 342 // Returns the request context used for extension-related requests. This |
338 // is only used for a separate cookie store currently. | 343 // is only used for a separate cookie store currently. |
339 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 344 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
340 | 345 |
346 // Returns the request context used within an installed app that has | |
347 // requested isolated storage. | |
348 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp( | |
349 const Extension* installed_app) = 0; | |
350 | |
341 // Called by the ExtensionService that lives in this profile. Gives the | 351 // Called by the ExtensionService that lives in this profile. Gives the |
342 // profile a chance to react to the load event before the EXTENSION_LOADED | 352 // profile a chance to react to the load event before the EXTENSION_LOADED |
343 // notification has fired. The purpose for handling this event first is to | 353 // notification has fired. The purpose for handling this event first is to |
344 // avoid race conditions by making sure URLRequestContexts learn about new | 354 // avoid race conditions by making sure URLRequestContexts learn about new |
345 // extensions before anything else needs them to know. | 355 // extensions before anything else needs them to know. |
346 virtual void RegisterExtensionWithRequestContexts( | 356 virtual void RegisterExtensionWithRequestContexts( |
347 const Extension* extension) {} | 357 const Extension* extension) {} |
348 | 358 |
349 // Called by the ExtensionService that lives in this profile. Lets the | 359 // Called by the ExtensionService that lives in this profile. Lets the |
350 // profile clean up its RequestContexts once all the listeners to the | 360 // profile clean up its RequestContexts once all the listeners to the |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
553 bool restored_last_session_; | 563 bool restored_last_session_; |
554 | 564 |
555 // Accessibility events will only be propagated when the pause | 565 // Accessibility events will only be propagated when the pause |
556 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 566 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
557 // increment and decrement the level, respectively, rather than set it to | 567 // increment and decrement the level, respectively, rather than set it to |
558 // true or false, so that calls can be nested. | 568 // true or false, so that calls can be nested. |
559 int accessibility_pause_level_; | 569 int accessibility_pause_level_; |
560 }; | 570 }; |
561 | 571 |
562 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 572 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |