 Chromium Code Reviews
 Chromium Code Reviews Issue 6825038:
  Create a content::ResourceContext.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 6825038:
  Create a content::ResourceContext.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 | 340 | 
| 337 // Returns the request context used for extension-related requests. This | 341 // Returns the request context used for extension-related requests. This | 
| 338 // is only used for a separate cookie store currently. | 342 // is only used for a separate cookie store currently. | 
| 339 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 343 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 
| 340 | 344 | 
| 341 // Returns the request context used within an installed app that has | 345 // Returns the request context used within an installed app that has | 
| 342 // requested isolated storage. | 346 // requested isolated storage. | 
| 343 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 347 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 
| 344 const std::string& app_id) = 0; | 348 const std::string& app_id) = 0; | 
| 345 | 349 | 
| 350 virtual const content::ResourceContext& GetResourceContext() = 0; | |
| 
jam
2011/04/13 16:43:06
nit: comment
 | |
| 351 | |
| 346 // Called by the ExtensionService that lives in this profile. Gives the | 352 // Called by the ExtensionService that lives in this profile. Gives the | 
| 347 // profile a chance to react to the load event before the EXTENSION_LOADED | 353 // profile a chance to react to the load event before the EXTENSION_LOADED | 
| 348 // notification has fired. The purpose for handling this event first is to | 354 // notification has fired. The purpose for handling this event first is to | 
| 349 // avoid race conditions by making sure URLRequestContexts learn about new | 355 // avoid race conditions by making sure URLRequestContexts learn about new | 
| 350 // extensions before anything else needs them to know. | 356 // extensions before anything else needs them to know. | 
| 351 virtual void RegisterExtensionWithRequestContexts( | 357 virtual void RegisterExtensionWithRequestContexts( | 
| 352 const Extension* extension) {} | 358 const Extension* extension) {} | 
| 353 | 359 | 
| 354 // Called by the ExtensionService that lives in this profile. Lets the | 360 // Called by the ExtensionService that lives in this profile. Lets the | 
| 355 // profile clean up its RequestContexts once all the listeners to the | 361 // profile clean up its RequestContexts once all the listeners to the | 
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 584 bool restored_last_session_; | 590 bool restored_last_session_; | 
| 585 | 591 | 
| 586 // Accessibility events will only be propagated when the pause | 592 // Accessibility events will only be propagated when the pause | 
| 587 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 593 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 
| 588 // increment and decrement the level, respectively, rather than set it to | 594 // increment and decrement the level, respectively, rather than set it to | 
| 589 // true or false, so that calls can be nested. | 595 // true or false, so that calls can be nested. | 
| 590 int accessibility_pause_level_; | 596 int accessibility_pause_level_; | 
| 591 }; | 597 }; | 
| 592 | 598 | 
| 593 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 599 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 
| OLD | NEW |