| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/port.h" | 12 #include "base/port.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "chrome/browser/sync/syncable/syncable.h" | 14 #include "chrome/browser/sync/syncable/syncable.h" |
| 15 #include "chrome/browser/sync/util/event_sys-inl.h" | 15 #include "chrome/browser/sync/util/event_sys-inl.h" |
| 16 #include "chrome/browser/sync/util/path_helpers.h" | |
| 17 | 16 |
| 18 namespace syncable { | 17 namespace syncable { |
| 19 | 18 |
| 20 static const FilePath::CharType kSyncDataDatabaseFilename[] = | 19 static const FilePath::CharType kSyncDataDatabaseFilename[] = |
| 21 FILE_PATH_LITERAL("SyncData.sqlite3"); | 20 FILE_PATH_LITERAL("SyncData.sqlite3"); |
| 22 | 21 |
| 23 DirectoryManagerEvent DirectoryManagerShutdownEvent() { | 22 DirectoryManagerEvent DirectoryManagerShutdownEvent() { |
| 24 DirectoryManagerEvent event; | 23 DirectoryManagerEvent event; |
| 25 event.what_happened = DirectoryManagerEvent::SHUTDOWN; | 24 event.what_happened = DirectoryManagerEvent::SHUTDOWN; |
| 26 return event; | 25 return event; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return dir_; | 146 return dir_; |
| 148 } | 147 } |
| 149 | 148 |
| 150 ScopedDirLookup::operator Directory* () const { | 149 ScopedDirLookup::operator Directory* () const { |
| 151 CHECK(good_checked_); | 150 CHECK(good_checked_); |
| 152 DCHECK(good_); | 151 DCHECK(good_); |
| 153 return dir_; | 152 return dir_; |
| 154 } | 153 } |
| 155 | 154 |
| 156 } // namespace syncable | 155 } // namespace syncable |
| OLD | NEW |