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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 326 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
327 | 327 |
328 // Returns the BrowserSignin object assigned to this profile. | 328 // Returns the BrowserSignin object assigned to this profile. |
329 virtual BrowserSignin* GetBrowserSignin() = 0; | 329 virtual BrowserSignin* GetBrowserSignin() = 0; |
330 | 330 |
331 // Returns the request context information associated with this profile. Call | 331 // Returns the request context information associated with this profile. Call |
332 // this only on the UI thread, since it can send notifications that should | 332 // this only on the UI thread, since it can send notifications that should |
333 // happen on the UI thread. | 333 // happen on the UI thread. |
334 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 334 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
335 | 335 |
336 // Returns the request context appropriate for the given app. If installed_app | 336 // Returns the request context appropriate for the given renderer. If the |
337 // is null or installed_app->is_storage_isolated() returns false, this is | 337 // renderer process doesn't have an assosicated installed app, or if the |
338 // equivalent to calling GetRequestContext(). | 338 // installed app's is_storage_isolated() returns false, this is equivalent to |
| 339 // calling GetRequestContext(). |
339 // TODO(creis): After isolated app storage is no longer an experimental | 340 // TODO(creis): After isolated app storage is no longer an experimental |
340 // feature, consider making this the default contract for GetRequestContext. | 341 // feature, consider making this the default contract for GetRequestContext. |
341 virtual net::URLRequestContextGetter* GetRequestContextForPossibleApp( | 342 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
342 const Extension* installed_app) = 0; | 343 int renderer_child_id) = 0; |
343 | 344 |
344 // Returns the request context for media resources asociated with this | 345 // Returns the request context for media resources asociated with this |
345 // profile. | 346 // profile. |
346 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; | 347 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; |
347 | 348 |
348 // Returns the request context used for extension-related requests. This | 349 // Returns the request context used for extension-related requests. This |
349 // is only used for a separate cookie store currently. | 350 // is only used for a separate cookie store currently. |
350 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 351 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
351 | 352 |
352 // Returns the request context used within an installed app that has | 353 // Returns the request context used within an installed app that has |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 bool restored_last_session_; | 595 bool restored_last_session_; |
595 | 596 |
596 // Accessibility events will only be propagated when the pause | 597 // Accessibility events will only be propagated when the pause |
597 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 598 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
598 // increment and decrement the level, respectively, rather than set it to | 599 // increment and decrement the level, respectively, rather than set it to |
599 // true or false, so that calls can be nested. | 600 // true or false, so that calls can be nested. |
600 int accessibility_pause_level_; | 601 int accessibility_pause_level_; |
601 }; | 602 }; |
602 | 603 |
603 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 604 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |