OLD | NEW |
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 #include "chrome/browser/sync/syncable/directory_manager.h" | 5 #include "chrome/browser/sync/syncable/directory_manager.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <iterator> | 9 #include <iterator> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/port.h" | 13 #include "base/port.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "chrome/browser/sync/syncable/syncable.h" | 15 #include "chrome/browser/sync/syncable/syncable.h" |
| 16 #include "chrome/browser/sync/util/cryptographer.h" |
16 | 17 |
17 using browser_sync::Cryptographer; | 18 using browser_sync::Cryptographer; |
18 | 19 |
19 namespace syncable { | 20 namespace syncable { |
20 | 21 |
21 static const FilePath::CharType kSyncDataDatabaseFilename[] = | 22 static const FilePath::CharType kSyncDataDatabaseFilename[] = |
22 FILE_PATH_LITERAL("SyncData.sqlite3"); | 23 FILE_PATH_LITERAL("SyncData.sqlite3"); |
23 | 24 |
24 // static | 25 // static |
25 const FilePath DirectoryManager::GetSyncDataDatabaseFilename() { | 26 const FilePath DirectoryManager::GetSyncDataDatabaseFilename() { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 DCHECK(good_); | 137 DCHECK(good_); |
137 return dir_; | 138 return dir_; |
138 } | 139 } |
139 | 140 |
140 ScopedDirLookup::operator Directory* () const { | 141 ScopedDirLookup::operator Directory* () const { |
141 CHECK(good_checked_); | 142 CHECK(good_checked_); |
142 DCHECK(good_); | 143 DCHECK(good_); |
143 return dir_; | 144 return dir_; |
144 } | 145 } |
145 | 146 |
| 147 DirectoryManager* ScopedDirLookup::manager() const { |
| 148 return dirman_; |
| 149 } |
| 150 |
146 } // namespace syncable | 151 } // namespace syncable |
OLD | NEW |