Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 6272016: Prevent non-Incognito windows in the Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: code review Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 #endif // defined(OS_CHROMEOS) 511 #endif // defined(OS_CHROMEOS)
512 512
513 // Returns the helper object that provides the proxy configuration service 513 // Returns the helper object that provides the proxy configuration service
514 // access to the the proxy configuration possibly defined by preferences. 514 // access to the the proxy configuration possibly defined by preferences.
515 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 515 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
516 516
517 // Returns the PrerenderManager used to prerender entire webpages for this 517 // Returns the PrerenderManager used to prerender entire webpages for this
518 // profile. 518 // profile.
519 virtual PrerenderManager* GetPrerenderManager() = 0; 519 virtual PrerenderManager* GetPrerenderManager() = 0;
520 520
521 // Returns whether it is a guest session.
522 static bool IsGuestSession();
523
521 #ifdef UNIT_TEST 524 #ifdef UNIT_TEST
522 // Use with caution. GetDefaultRequestContext may be called on any thread! 525 // Use with caution. GetDefaultRequestContext may be called on any thread!
523 static void set_default_request_context(URLRequestContextGetter* c) { 526 static void set_default_request_context(URLRequestContextGetter* c) {
524 default_request_context_ = c; 527 default_request_context_ = c;
525 } 528 }
526 #endif 529 #endif
527 530
528 // Did the user restore the last session? This is set by SessionRestore. 531 // Did the user restore the last session? This is set by SessionRestore.
529 void set_restored_last_session(bool restored_last_session) { 532 void set_restored_last_session(bool restored_last_session) {
530 restored_last_session_ = restored_last_session; 533 restored_last_session_ = restored_last_session;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 bool restored_last_session_; 570 bool restored_last_session_;
568 571
569 // Accessibility events will only be propagated when the pause 572 // Accessibility events will only be propagated when the pause
570 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 573 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
571 // increment and decrement the level, respectively, rather than set it to 574 // increment and decrement the level, respectively, rather than set it to
572 // true or false, so that calls can be nested. 575 // true or false, so that calls can be nested.
573 int accessibility_pause_level_; 576 int accessibility_pause_level_;
574 }; 577 };
575 578
576 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 579 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698