| 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/session_backend.h" | 5 #include "chrome/browser/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 "base/pickle.h" | 11 #include "base/pickle.h" |
| 12 #include "chrome/common/scoped_vector.h" | 12 #include "chrome/common/scoped_vector.h" |
| 13 | 13 |
| 14 using base::TimeTicks; |
| 15 |
| 14 // File version number. | 16 // File version number. |
| 15 static const int32 kFileCurrentVersion = 1; | 17 static const int32 kFileCurrentVersion = 1; |
| 16 | 18 |
| 17 // The signature at the beginning of the file = SSNS (Sessions). | 19 // The signature at the beginning of the file = SSNS (Sessions). |
| 18 static const int32 kFileSignature = 0x53534E53; | 20 static const int32 kFileSignature = 0x53534E53; |
| 19 | 21 |
| 20 namespace { | 22 namespace { |
| 21 | 23 |
| 22 // SessionFileReader ---------------------------------------------------------- | 24 // SessionFileReader ---------------------------------------------------------- |
| 23 | 25 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 std::wstring path = path_to_dir_; | 370 std::wstring path = path_to_dir_; |
| 369 file_util::AppendToPath(&path, kSavedSessionFileName); | 371 file_util::AppendToPath(&path, kSavedSessionFileName); |
| 370 return path; | 372 return path; |
| 371 } | 373 } |
| 372 | 374 |
| 373 std::wstring SessionBackend::GetCurrentSessionPath() { | 375 std::wstring SessionBackend::GetCurrentSessionPath() { |
| 374 std::wstring path = path_to_dir_; | 376 std::wstring path = path_to_dir_; |
| 375 file_util::AppendToPath(&path, kCurrentSessionFileName); | 377 file_util::AppendToPath(&path, kCurrentSessionFileName); |
| 376 return path; | 378 return path; |
| 377 } | 379 } |
| 378 | |
| OLD | NEW |