| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/sessions/session_backend.h" | 5 #include "chrome/browser/sessions/session_backend.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
| 11 #include "chrome/common/scoped_vector.h" | 11 #include "base/scoped_vector.h" |
| 12 | 12 |
| 13 using base::TimeTicks; | 13 using base::TimeTicks; |
| 14 | 14 |
| 15 // File version number. | 15 // File version number. |
| 16 static const int32 kFileCurrentVersion = 1; | 16 static const int32 kFileCurrentVersion = 1; |
| 17 | 17 |
| 18 // The signature at the beginning of the file = SSNS (Sessions). | 18 // The signature at the beginning of the file = SSNS (Sessions). |
| 19 static const int32 kFileSignature = 0x53534E53; | 19 static const int32 kFileSignature = 0x53534E53; |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 FilePath SessionBackend::GetCurrentSessionPath() { | 362 FilePath SessionBackend::GetCurrentSessionPath() { |
| 363 FilePath path = path_to_dir_; | 363 FilePath path = path_to_dir_; |
| 364 if (type_ == BaseSessionService::TAB_RESTORE) | 364 if (type_ == BaseSessionService::TAB_RESTORE) |
| 365 path = path.AppendASCII(kCurrentTabSessionFileName); | 365 path = path.AppendASCII(kCurrentTabSessionFileName); |
| 366 else | 366 else |
| 367 path = path.AppendASCII(kCurrentSessionFileName); | 367 path = path.AppendASCII(kCurrentSessionFileName); |
| 368 return path; | 368 return path; |
| 369 } | 369 } |
| OLD | NEW |