| OLD | NEW |
| 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 #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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 437 |
| 438 // Are there any open trackable browsers? | 438 // Are there any open trackable browsers? |
| 439 bool has_open_trackable_browsers_; | 439 bool has_open_trackable_browsers_; |
| 440 | 440 |
| 441 // If true and a new tabbed browser is created and there are no opened tabbed | 441 // If true and a new tabbed browser is created and there are no opened tabbed |
| 442 // browser (has_open_trackable_browsers_ is false), then the current session | 442 // browser (has_open_trackable_browsers_ is false), then the current session |
| 443 // is made the previous session. See description above class for details on | 443 // is made the previous session. See description above class for details on |
| 444 // current/previous session. | 444 // current/previous session. |
| 445 bool move_on_new_browser_; | 445 bool move_on_new_browser_; |
| 446 | 446 |
| 447 // Used for reporting frequency of session alteriing operations. | 447 // Used for reporting frequency of session altering operations. |
| 448 base::TimeTicks last_updated_tab_closed_time_; | 448 base::TimeTicks last_updated_tab_closed_time_; |
| 449 base::TimeTicks last_updated_nav_list_pruned_time_; | 449 base::TimeTicks last_updated_nav_list_pruned_time_; |
| 450 base::TimeTicks last_updated_nav_entry_commit_time_; | 450 base::TimeTicks last_updated_nav_entry_commit_time_; |
| 451 base::TimeTicks last_updated_save_time_; | 451 base::TimeTicks last_updated_save_time_; |
| 452 | 452 |
| 453 // Constants used in calculating histogram data. | 453 // Constants used in calculating histogram data. |
| 454 const base::TimeDelta save_delay_in_millis_; | 454 const base::TimeDelta save_delay_in_millis_; |
| 455 const base::TimeDelta save_delay_in_mins_; | 455 const base::TimeDelta save_delay_in_mins_; |
| 456 const base::TimeDelta save_delay_in_hrs_; | 456 const base::TimeDelta save_delay_in_hrs_; |
| 457 | 457 |
| 458 DISALLOW_COPY_AND_ASSIGN(SessionService); | 458 DISALLOW_COPY_AND_ASSIGN(SessionService); |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| OLD | NEW |