| 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> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class Time; | 18 class Time; |
| 19 class WaitableEvent; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 class ResourceContext; | 23 class ResourceContext; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace fileapi { | 26 namespace fileapi { |
| 26 class FileSystemContext; | 27 class FileSystemContext; |
| 27 class SandboxedFileSystemContext; | 28 class SandboxedFileSystemContext; |
| 28 } | 29 } |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 #endif // defined(OS_CHROMEOS) | 509 #endif // defined(OS_CHROMEOS) |
| 509 | 510 |
| 510 // Returns the helper object that provides the proxy configuration service | 511 // Returns the helper object that provides the proxy configuration service |
| 511 // access to the the proxy configuration possibly defined by preferences. | 512 // access to the the proxy configuration possibly defined by preferences. |
| 512 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 513 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 513 | 514 |
| 514 // Returns the PrerenderManager used to prerender entire webpages for this | 515 // Returns the PrerenderManager used to prerender entire webpages for this |
| 515 // profile. | 516 // profile. |
| 516 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; | 517 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; |
| 517 | 518 |
| 519 // Clears the app cache (if the profile settings to dictate), returns a |
| 520 // WaitableEvent for signalling when the clearing is complete, or NULL if |
| 521 // there is nothing to clear. The WaitableEvent is not owned by the caller. |
| 522 virtual base::WaitableEvent* ClearAppCache(); |
| 523 |
| 518 std::string GetDebugName(); | 524 std::string GetDebugName(); |
| 519 | 525 |
| 520 // Returns whether it is a guest session. | 526 // Returns whether it is a guest session. |
| 521 static bool IsGuestSession(); | 527 static bool IsGuestSession(); |
| 522 | 528 |
| 523 #ifdef UNIT_TEST | 529 #ifdef UNIT_TEST |
| 524 // Use with caution. GetDefaultRequestContext may be called on any thread! | 530 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 525 static void set_default_request_context(net::URLRequestContextGetter* c) { | 531 static void set_default_request_context(net::URLRequestContextGetter* c) { |
| 526 default_request_context_ = c; | 532 default_request_context_ = c; |
| 527 } | 533 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 bool restored_last_session_; | 573 bool restored_last_session_; |
| 568 | 574 |
| 569 // Accessibility events will only be propagated when the pause | 575 // Accessibility events will only be propagated when the pause |
| 570 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 576 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 571 // increment and decrement the level, respectively, rather than set it to | 577 // increment and decrement the level, respectively, rather than set it to |
| 572 // true or false, so that calls can be nested. | 578 // true or false, so that calls can be nested. |
| 573 int accessibility_pause_level_; | 579 int accessibility_pause_level_; |
| 574 }; | 580 }; |
| 575 | 581 |
| 576 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 582 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |