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

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: fixed win warning + indent 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
« no previous file with comments | « chrome/browser/dom_ui/options/options_ui.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 #endif // defined(OS_CHROMEOS) 523 #endif // defined(OS_CHROMEOS)
524 524
525 // Returns the helper object that provides the proxy configuration service 525 // Returns the helper object that provides the proxy configuration service
526 // access to the the proxy configuration possibly defined by preferences. 526 // access to the the proxy configuration possibly defined by preferences.
527 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 527 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
528 528
529 // Returns the PrerenderManager used to prerender entire webpages for this 529 // Returns the PrerenderManager used to prerender entire webpages for this
530 // profile. 530 // profile.
531 virtual PrerenderManager* GetPrerenderManager() = 0; 531 virtual PrerenderManager* GetPrerenderManager() = 0;
532 532
533 // Returns whether it is a guest session.
534 static bool IsGuestSession();
535
533 #ifdef UNIT_TEST 536 #ifdef UNIT_TEST
534 // Use with caution. GetDefaultRequestContext may be called on any thread! 537 // Use with caution. GetDefaultRequestContext may be called on any thread!
535 static void set_default_request_context(URLRequestContextGetter* c) { 538 static void set_default_request_context(URLRequestContextGetter* c) {
536 default_request_context_ = c; 539 default_request_context_ = c;
537 } 540 }
538 #endif 541 #endif
539 542
540 // Did the user restore the last session? This is set by SessionRestore. 543 // Did the user restore the last session? This is set by SessionRestore.
541 void set_restored_last_session(bool restored_last_session) { 544 void set_restored_last_session(bool restored_last_session) {
542 restored_last_session_ = restored_last_session; 545 restored_last_session_ = restored_last_session;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 bool restored_last_session_; 580 bool restored_last_session_;
578 581
579 // Accessibility events will only be propagated when the pause 582 // Accessibility events will only be propagated when the pause
580 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 583 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
581 // increment and decrement the level, respectively, rather than set it to 584 // increment and decrement the level, respectively, rather than set it to
582 // true or false, so that calls can be nested. 585 // true or false, so that calls can be nested.
583 int accessibility_pause_level_; 586 int accessibility_pause_level_;
584 }; 587 };
585 588
586 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 589 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/options_ui.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698