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

Side by Side Diff: chrome/browser/sessions/session_service.h

Issue 8929007: Restore sessionStorage when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 // Are there any open trackable browsers? 428 // Are there any open trackable browsers?
429 bool has_open_trackable_browsers_; 429 bool has_open_trackable_browsers_;
430 430
431 // If true and a new tabbed browser is created and there are no opened tabbed 431 // If true and a new tabbed browser is created and there are no opened tabbed
432 // browser (has_open_trackable_browsers_ is false), then the current session 432 // browser (has_open_trackable_browsers_ is false), then the current session
433 // is made the last session. See description above class for details on 433 // is made the last session. See description above class for details on
434 // current/last session. 434 // current/last session.
435 bool move_on_new_browser_; 435 bool move_on_new_browser_;
436 436
437 typedef std::map<int64,
jochen (gone - plz use gerrit) 2011/12/13 13:47:32 please add a comment what is mapped to what here
marja 2012/01/11 15:17:53 Done.
438 std::pair<SessionID, SessionID> > SessionStorageNamespaceMap;
439
440 SessionStorageNamespaceMap session_storage_namespace_map_;
441
437 // Used for reporting frequency of session altering operations. 442 // Used for reporting frequency of session altering operations.
438 base::TimeTicks last_updated_tab_closed_time_; 443 base::TimeTicks last_updated_tab_closed_time_;
439 base::TimeTicks last_updated_nav_list_pruned_time_; 444 base::TimeTicks last_updated_nav_list_pruned_time_;
440 base::TimeTicks last_updated_nav_entry_commit_time_; 445 base::TimeTicks last_updated_nav_entry_commit_time_;
441 base::TimeTicks last_updated_save_time_; 446 base::TimeTicks last_updated_save_time_;
442 447
443 // Constants used in calculating histogram data. 448 // Constants used in calculating histogram data.
444 const base::TimeDelta save_delay_in_millis_; 449 const base::TimeDelta save_delay_in_millis_;
445 const base::TimeDelta save_delay_in_mins_; 450 const base::TimeDelta save_delay_in_mins_;
446 const base::TimeDelta save_delay_in_hrs_; 451 const base::TimeDelta save_delay_in_hrs_;
447 452
448 DISALLOW_COPY_AND_ASSIGN(SessionService); 453 DISALLOW_COPY_AND_ASSIGN(SessionService);
449 }; 454 };
450 455
451 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ 456 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698