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

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

Issue 2858032: Display content settings applying to the current otr session only. (Closed)
Patch Set: updates Created 10 years, 5 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
« no previous file with comments | « chrome/browser/gtk/options/cookie_filter_page_gtk.cc ('k') | chrome/browser/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual bool IsOffTheRecord() = 0; 143 virtual bool IsOffTheRecord() = 0;
144 144
145 // Return the off the record version of this profile. The returned pointer 145 // Return the off the record version of this profile. The returned pointer
146 // is owned by the receiving profile. If the receiving profile is off the 146 // is owned by the receiving profile. If the receiving profile is off the
147 // record, the same profile is returned. 147 // record, the same profile is returned.
148 virtual Profile* GetOffTheRecordProfile() = 0; 148 virtual Profile* GetOffTheRecordProfile() = 0;
149 149
150 // Destroys the off the record profile. 150 // Destroys the off the record profile.
151 virtual void DestroyOffTheRecordProfile() = 0; 151 virtual void DestroyOffTheRecordProfile() = 0;
152 152
153 // True if an off the record profile exists.
154 virtual bool HasOffTheRecordProfile() = 0;
155
153 // Return the original "recording" profile. This method returns this if the 156 // Return the original "recording" profile. This method returns this if the
154 // profile is not off the record. 157 // profile is not off the record.
155 virtual Profile* GetOriginalProfile() = 0; 158 virtual Profile* GetOriginalProfile() = 0;
156 159
157 // Returns a pointer to the DatabaseTracker instance for this profile. 160 // Returns a pointer to the DatabaseTracker instance for this profile.
158 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; 161 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
159 162
160 // Returns a pointer to the TopSites (thumbnail manager) instance 163 // Returns a pointer to the TopSites (thumbnail manager) instance
161 // for this profile. 164 // for this profile.
162 virtual history::TopSites* GetTopSites() = 0; 165 virtual history::TopSites* GetTopSites() = 0;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 public NotificationObserver { 476 public NotificationObserver {
474 public: 477 public:
475 virtual ~ProfileImpl(); 478 virtual ~ProfileImpl();
476 479
477 // Profile implementation. 480 // Profile implementation.
478 virtual ProfileId GetRuntimeId(); 481 virtual ProfileId GetRuntimeId();
479 virtual FilePath GetPath(); 482 virtual FilePath GetPath();
480 virtual bool IsOffTheRecord(); 483 virtual bool IsOffTheRecord();
481 virtual Profile* GetOffTheRecordProfile(); 484 virtual Profile* GetOffTheRecordProfile();
482 virtual void DestroyOffTheRecordProfile(); 485 virtual void DestroyOffTheRecordProfile();
486 virtual bool HasOffTheRecordProfile();
483 virtual Profile* GetOriginalProfile(); 487 virtual Profile* GetOriginalProfile();
484 virtual webkit_database::DatabaseTracker* GetDatabaseTracker(); 488 virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
485 virtual history::TopSites* GetTopSites(); 489 virtual history::TopSites* GetTopSites();
486 virtual VisitedLinkMaster* GetVisitedLinkMaster(); 490 virtual VisitedLinkMaster* GetVisitedLinkMaster();
487 virtual UserScriptMaster* GetUserScriptMaster(); 491 virtual UserScriptMaster* GetUserScriptMaster();
488 virtual SSLHostState* GetSSLHostState(); 492 virtual SSLHostState* GetSSLHostState();
489 virtual net::TransportSecurityState* GetTransportSecurityState(); 493 virtual net::TransportSecurityState* GetTransportSecurityState();
490 virtual ExtensionsService* GetExtensionsService(); 494 virtual ExtensionsService* GetExtensionsService();
491 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); 495 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager();
492 virtual ExtensionProcessManager* GetExtensionProcessManager(); 496 virtual ExtensionProcessManager* GetExtensionProcessManager();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 674 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
671 675
672 #if defined(OS_CHROMEOS) 676 #if defined(OS_CHROMEOS)
673 chromeos::Preferences chromeos_preferences_; 677 chromeos::Preferences chromeos_preferences_;
674 #endif 678 #endif
675 679
676 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 680 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
677 }; 681 };
678 682
679 #endif // CHROME_BROWSER_PROFILE_H_ 683 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/cookie_filter_page_gtk.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698