| 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 <string> |
| 12 |
| 11 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 13 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 14 | 16 |
| 15 namespace base { | 17 namespace base { |
| 16 class Time; | 18 class Time; |
| 17 } | 19 } |
| 18 | 20 |
| 19 namespace content { | 21 namespace content { |
| 20 class ResourceContext; | 22 class ResourceContext; |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 #endif // defined(OS_CHROMEOS) | 517 #endif // defined(OS_CHROMEOS) |
| 516 | 518 |
| 517 // Returns the helper object that provides the proxy configuration service | 519 // Returns the helper object that provides the proxy configuration service |
| 518 // access to the the proxy configuration possibly defined by preferences. | 520 // access to the the proxy configuration possibly defined by preferences. |
| 519 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 521 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 520 | 522 |
| 521 // Returns the PrerenderManager used to prerender entire webpages for this | 523 // Returns the PrerenderManager used to prerender entire webpages for this |
| 522 // profile. | 524 // profile. |
| 523 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; | 525 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; |
| 524 | 526 |
| 527 std::string GetDebugName(); |
| 528 |
| 525 // Returns whether it is a guest session. | 529 // Returns whether it is a guest session. |
| 526 static bool IsGuestSession(); | 530 static bool IsGuestSession(); |
| 527 | 531 |
| 528 #ifdef UNIT_TEST | 532 #ifdef UNIT_TEST |
| 529 // Use with caution. GetDefaultRequestContext may be called on any thread! | 533 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 530 static void set_default_request_context(net::URLRequestContextGetter* c) { | 534 static void set_default_request_context(net::URLRequestContextGetter* c) { |
| 531 default_request_context_ = c; | 535 default_request_context_ = c; |
| 532 } | 536 } |
| 533 #endif | 537 #endif |
| 534 | 538 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 bool restored_last_session_; | 576 bool restored_last_session_; |
| 573 | 577 |
| 574 // Accessibility events will only be propagated when the pause | 578 // Accessibility events will only be propagated when the pause |
| 575 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 579 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 576 // increment and decrement the level, respectively, rather than set it to | 580 // increment and decrement the level, respectively, rather than set it to |
| 577 // true or false, so that calls can be nested. | 581 // true or false, so that calls can be nested. |
| 578 int accessibility_pause_level_; | 582 int accessibility_pause_level_; |
| 579 }; | 583 }; |
| 580 | 584 |
| 581 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 585 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |