| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class Time; | 15 class Time; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { |
| 19 class ResourceContext; |
| 20 } |
| 21 |
| 18 namespace fileapi { | 22 namespace fileapi { |
| 19 class FileSystemContext; | 23 class FileSystemContext; |
| 20 class SandboxedFileSystemContext; | 24 class SandboxedFileSystemContext; |
| 21 } | 25 } |
| 22 | 26 |
| 23 namespace history { | 27 namespace history { |
| 24 class TopSites; | 28 class TopSites; |
| 25 } | 29 } |
| 26 | 30 |
| 27 namespace net { | 31 namespace net { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 338 |
| 335 // Returns the request context used for extension-related requests. This | 339 // Returns the request context used for extension-related requests. This |
| 336 // is only used for a separate cookie store currently. | 340 // is only used for a separate cookie store currently. |
| 337 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 341 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 338 | 342 |
| 339 // Returns the request context used within an installed app that has | 343 // Returns the request context used within an installed app that has |
| 340 // requested isolated storage. | 344 // requested isolated storage. |
| 341 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 345 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| 342 const std::string& app_id) = 0; | 346 const std::string& app_id) = 0; |
| 343 | 347 |
| 348 virtual const content::ResourceContext& GetResourceContext() = 0; |
| 349 |
| 344 // Called by the ExtensionService that lives in this profile. Gives the | 350 // Called by the ExtensionService that lives in this profile. Gives the |
| 345 // profile a chance to react to the load event before the EXTENSION_LOADED | 351 // profile a chance to react to the load event before the EXTENSION_LOADED |
| 346 // notification has fired. The purpose for handling this event first is to | 352 // notification has fired. The purpose for handling this event first is to |
| 347 // avoid race conditions by making sure URLRequestContexts learn about new | 353 // avoid race conditions by making sure URLRequestContexts learn about new |
| 348 // extensions before anything else needs them to know. | 354 // extensions before anything else needs them to know. |
| 349 virtual void RegisterExtensionWithRequestContexts( | 355 virtual void RegisterExtensionWithRequestContexts( |
| 350 const Extension* extension) {} | 356 const Extension* extension) {} |
| 351 | 357 |
| 352 // Called by the ExtensionService that lives in this profile. Lets the | 358 // Called by the ExtensionService that lives in this profile. Lets the |
| 353 // profile clean up its RequestContexts once all the listeners to the | 359 // profile clean up its RequestContexts once all the listeners to the |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 bool restored_last_session_; | 585 bool restored_last_session_; |
| 580 | 586 |
| 581 // Accessibility events will only be propagated when the pause | 587 // Accessibility events will only be propagated when the pause |
| 582 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 588 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 583 // increment and decrement the level, respectively, rather than set it to | 589 // increment and decrement the level, respectively, rather than set it to |
| 584 // true or false, so that calls can be nested. | 590 // true or false, so that calls can be nested. |
| 585 int accessibility_pause_level_; | 591 int accessibility_pause_level_; |
| 586 }; | 592 }; |
| 587 | 593 |
| 588 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 594 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |