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

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

Issue 2450004: Don't save last used locations in open and save dialogs when in incognito mode. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Rename kLastSelectedDirectory to kSelectFileLastDirectory. Created 10 years, 6 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/download/save_package.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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 virtual void MarkAsCleanShutdown() = 0; 409 virtual void MarkAsCleanShutdown() = 0;
410 410
411 virtual void InitExtensions() = 0; 411 virtual void InitExtensions() = 0;
412 412
413 // Start up service that gathers data from web resource feeds. 413 // Start up service that gathers data from web resource feeds.
414 virtual void InitWebResources() = 0; 414 virtual void InitWebResources() = 0;
415 415
416 // Returns the new tab page resource cache. 416 // Returns the new tab page resource cache.
417 virtual NTPResourceCache* GetNTPResourceCache() = 0; 417 virtual NTPResourceCache* GetNTPResourceCache() = 0;
418 418
419 // Returns the last directory that was chosen for uploading or opening a file.
420 virtual FilePath last_selected_directory() = 0;
421 virtual void set_last_selected_directory(const FilePath& path) = 0;
422
419 #ifdef UNIT_TEST 423 #ifdef UNIT_TEST
420 // Use with caution. GetDefaultRequestContext may be called on any thread! 424 // Use with caution. GetDefaultRequestContext may be called on any thread!
421 static void set_default_request_context(URLRequestContextGetter* c) { 425 static void set_default_request_context(URLRequestContextGetter* c) {
422 default_request_context_ = c; 426 default_request_context_ = c;
423 } 427 }
424 #endif 428 #endif
425 429
426 // Did the user restore the last session? This is set by SessionRestore. 430 // Did the user restore the last session? This is set by SessionRestore.
427 void set_restored_last_session(bool restored_last_session) { 431 void set_restored_last_session(bool restored_last_session) {
428 restored_last_session_ = restored_last_session; 432 restored_last_session_ = restored_last_session;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 virtual TabRestoreService* GetTabRestoreService(); 533 virtual TabRestoreService* GetTabRestoreService();
530 virtual void ResetTabRestoreService(); 534 virtual void ResetTabRestoreService();
531 virtual SpellCheckHost* GetSpellCheckHost(); 535 virtual SpellCheckHost* GetSpellCheckHost();
532 virtual void ReinitializeSpellCheckHost(bool force); 536 virtual void ReinitializeSpellCheckHost(bool force);
533 virtual WebKitContext* GetWebKitContext(); 537 virtual WebKitContext* GetWebKitContext();
534 virtual DesktopNotificationService* GetDesktopNotificationService(); 538 virtual DesktopNotificationService* GetDesktopNotificationService();
535 virtual void MarkAsCleanShutdown(); 539 virtual void MarkAsCleanShutdown();
536 virtual void InitExtensions(); 540 virtual void InitExtensions();
537 virtual void InitWebResources(); 541 virtual void InitWebResources();
538 virtual NTPResourceCache* GetNTPResourceCache(); 542 virtual NTPResourceCache* GetNTPResourceCache();
543 virtual FilePath last_selected_directory();
544 virtual void set_last_selected_directory(const FilePath& path);
539 virtual ProfileSyncService* GetProfileSyncService(); 545 virtual ProfileSyncService* GetProfileSyncService();
540 void InitSyncService(); 546 void InitSyncService();
541 virtual CloudPrintProxyService* GetCloudPrintProxyService(); 547 virtual CloudPrintProxyService* GetCloudPrintProxyService();
542 void InitCloudPrintProxyService(); 548 void InitCloudPrintProxyService();
543 549
544 // NotificationObserver implementation. 550 // NotificationObserver implementation.
545 virtual void Observe(NotificationType type, 551 virtual void Observe(NotificationType type,
546 const NotificationSource& source, 552 const NotificationSource& source,
547 const NotificationDetails& details); 553 const NotificationDetails& details);
548 554
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 670 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
665 671
666 #if defined(OS_CHROMEOS) 672 #if defined(OS_CHROMEOS)
667 chromeos::Preferences chromeos_preferences_; 673 chromeos::Preferences chromeos_preferences_;
668 #endif 674 #endif
669 675
670 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 676 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
671 }; 677 };
672 678
673 #endif // CHROME_BROWSER_PROFILE_H_ 679 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698