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

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

Issue 8533013: SessionRestore: Store session cookies and restore them if chrome crashes or auto-restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 // method returns data is not guaranteed to be deleted. 487 // method returns data is not guaranteed to be deleted.
488 virtual void ClearNetworkingHistorySince(base::Time time) = 0; 488 virtual void ClearNetworkingHistorySince(base::Time time) = 0;
489 489
490 // Returns the home page for this profile. 490 // Returns the home page for this profile.
491 virtual GURL GetHomePage() = 0; 491 virtual GURL GetHomePage() = 0;
492 492
493 // Returns the NetworkActionPredictor used by the Omnibox to decide when to 493 // Returns the NetworkActionPredictor used by the Omnibox to decide when to
494 // prerender or prefetch a result. 494 // prerender or prefetch a result.
495 virtual NetworkActionPredictor* GetNetworkActionPredictor() = 0; 495 virtual NetworkActionPredictor* GetNetworkActionPredictor() = 0;
496 496
497 // Makes the session state, e.g., cookies, persistent across the next restart.
498 virtual void SaveSessionState() {}
499
497 std::string GetDebugName(); 500 std::string GetDebugName();
498 501
499 // Returns whether it is a guest session. 502 // Returns whether it is a guest session.
500 static bool IsGuestSession(); 503 static bool IsGuestSession();
501 504
502 #ifdef UNIT_TEST 505 #ifdef UNIT_TEST
503 // Use with caution. GetDefaultRequestContext may be called on any thread! 506 // Use with caution. GetDefaultRequestContext may be called on any thread!
504 static void set_default_request_context(net::URLRequestContextGetter* c) { 507 static void set_default_request_context(net::URLRequestContextGetter* c) {
505 default_request_context_ = c; 508 default_request_context_ = c;
506 } 509 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 struct hash<Profile*> { 571 struct hash<Profile*> {
569 std::size_t operator()(Profile* const& p) const { 572 std::size_t operator()(Profile* const& p) const {
570 return reinterpret_cast<std::size_t>(p); 573 return reinterpret_cast<std::size_t>(p);
571 } 574 }
572 }; 575 };
573 576
574 } // namespace __gnu_cxx 577 } // namespace __gnu_cxx
575 #endif 578 #endif
576 579
577 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store_unittest.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698