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

Side by Side Diff: chrome/browser/sessions/session_backend.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/base_session_service.cc ('k') | chrome/browser/sessions/session_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698