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

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 problem with PersonalDataManager Created 9 years, 11 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 #endif // defined(OS_CHROMEOS) 500 #endif // defined(OS_CHROMEOS)
501 501
502 // Returns the helper object that provides the proxy configuration service 502 // Returns the helper object that provides the proxy configuration service
503 // access to the the proxy configuration possibly defined by preferences. 503 // access to the the proxy configuration possibly defined by preferences.
504 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 504 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
505 505
506 // Returns the PrerenderManager used to prerender entire webpages for this 506 // Returns the PrerenderManager used to prerender entire webpages for this
507 // profile. 507 // profile.
508 virtual PrerenderManager* GetPrerenderManager() = 0; 508 virtual PrerenderManager* GetPrerenderManager() = 0;
509 509
510 // Returns whether it is a guest session.
511 static bool IsGuestSession();
512
510 #ifdef UNIT_TEST 513 #ifdef UNIT_TEST
511 // Use with caution. GetDefaultRequestContext may be called on any thread! 514 // Use with caution. GetDefaultRequestContext may be called on any thread!
512 static void set_default_request_context(URLRequestContextGetter* c) { 515 static void set_default_request_context(URLRequestContextGetter* c) {
513 default_request_context_ = c; 516 default_request_context_ = c;
514 } 517 }
515 #endif 518 #endif
516 519
517 // Did the user restore the last session? This is set by SessionRestore. 520 // Did the user restore the last session? This is set by SessionRestore.
518 void set_restored_last_session(bool restored_last_session) { 521 void set_restored_last_session(bool restored_last_session) {
519 restored_last_session_ = restored_last_session; 522 restored_last_session_ = restored_last_session;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 bool restored_last_session_; 555 bool restored_last_session_;
553 556
554 // Accessibility events will only be propagated when the pause 557 // Accessibility events will only be propagated when the pause
555 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 558 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
556 // increment and decrement the level, respectively, rather than set it to 559 // increment and decrement the level, respectively, rather than set it to
557 // true or false, so that calls can be nested. 560 // true or false, so that calls can be nested.
558 int accessibility_pause_level_; 561 int accessibility_pause_level_;
559 }; 562 };
560 563
561 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 564 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698